Hi, Yes you can .... as the sessions are mantained between multiple connections but i think you will be better off by making another test regarding whether the session is new or not by session.isNew() call. If it returns true you can always redirect the user to the first servlet for providing a single point entry. Rishi. Andrea Lardicci wrote: > Hi all and all the best. > This is the scenario I have a servlet making user authentication and > another performing other tasks. > When user is autenthicated he/she got a response htm pages containing > options invoking the second servlet. > I noticed that if I stored the user id in the session in the 1st servlet I > can retrieve it in the second. > if(request.getSession(false)==null) session = request.getSession(true); in > the 1st and > session = request.getSession(true); in the 2nd. > My question is: can I rely on that? > thks > Andrea > > ___________________________________________________________________________ > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body > of the message "signoff SERVLET-INTEREST". > > Archives: http://archives.java.sun.com/archives/servlet-interest.html > Resources: http://java.sun.com/products/servlet/external-resources.html > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
begin:vcard n:Asthana;Rishi tel;fax:1-732-548-4009 tel;home:1-732-635-3597 tel;work:1-732-548-0087 x-mozilla-html:FALSE org:NetCom Systems, Inc;Software Development adr:;;116,Copperfield Ln ;Metuchen;NJ;08840;USA version:2.1 email;internet:[EMAIL PROTECTED] title:Systems Consultant x-mozilla-cpt:;-3936 fn:Rishi Asthana end:vcard
