Hi Craig:
Thanks for replying to Dan. One question comes to mind: you mention that
exiting the browser wipes out any session cookies. ARE YOU SURE???
Thanks!
Jean
"Craig R. McClanahan" wrote:
> dan wrote:
>
> > Hi,Neither in the JWS1.1.3 doc nor in Hunter's Servlet Programming
> > norin The Developer's Guide to the Java Web Server
> > (Woods/Pekowsky/Snee)is it explicitly stated that a site consisting of
> > *several* servlets needs ordoesn't need e.g.HttpSession session =
> > req.getSession(true);for every single servlet. If I client hit
> > ServletOne (with aHttpSession session = req.getSession(true);) and
> > then navigates toServletTwo (also with aHttpSession session =
> > req.getSession(true);)is the first ID persistent through ServletTwo
> > and so on...or is a new ID created for ServletTwo, ServletThree
> > respectively?-dan
>
> As long as the following conditions are met, the session ID will be the
> same:
>
> * Both servlets are part of the same web application (i.e.
> part of the same ServletContext).
>
> * The client has not exited their browser in between
> the two calls (which wipes out any session cookies).
>
> * The client has cookies enabled, or you have used
> URL rewriting to make sure that the session ID is
> passed correctly on the next request.
>
> Craig McClanahan
>
> ___________________________________________________________________________
> 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