On Sat, 28 Apr 2001, roy woods wrote:

> > When a user opens a second browser window the current cookies are
> > shared between the 2 windows, so the session will carry over from
> > browser window to browser window.
>
> Thanks Nic for this detailed explanation. I got it when we are
> talking about cookie-based sessions.
>
> How about when you are NOT using cookies to maintain session but
> instead HttpSession object and the user had two browser windows open
> at the same time.?

I think you are confused here.  *All* of what Nic said has to do with
using HttpSession sessions.  Cookies are just used to store the
sessionid, i.e. as a means of associating the correct session with a
particular request.  The spec provides a second way of making this
association -- URL Rewriting, where the sessionid is included in the
URL.

Nic (and others) has talked about what happens when there are multiple
browser windows open.  Basically, it depends, on things like, which
particular browser, how the second (and other) windows were opened,
which method of associating sessions with requests you're using.  But
generally, the multiple browser windows will all use the same session.

Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]

___________________________________________________________________________
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

Reply via email to