That is interesting but how would you redirect the user to the first servlet?
At 08:09 PM 12/29/99 +0000, you wrote:
>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
___________________________________________________________________________
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