Woops - I forgot the word don't... I added it below in caps.
Andrea Lardicci wrote:
>
> 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?
This code should work, but you DON'T need to call getSession twice in
the 1st
servlet. Just use 'session = request.getSession(true)'. This will
return an existing session if there is one or create a new one if there
isn't.
___________________________________________________________________________
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