This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Servlets and the fly likes Session in new browser window Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Session in new browser window" Watch "Session in new browser window" New topic
Author

Session in new browser window

anuj sahai
Greenhorn

Joined: Dec 02, 2000
Posts: 8
hi,
i had a question as to what happens when we use ctrl+n to open a new browser window. Is it the same session id or a different session id.
Is there a diff in the way this is handeled in IE and netscape.....
Robert Gagliardo
Greenhorn

Joined: Nov 15, 2001
Posts: 24
the same session ID is used as long as cookies are enabled.
Jessica Sant
Sheriff

Joined: Oct 17, 2001
Posts: 4313

Also realize... if the user is using Netscape, and opens a new window (even from the Netscape icon) they will always have the same session ID...
but if they're using IE, when they open a new window from the icon, they'll have a new ID, but if they use Ctrl+N, it will be the same.


- Jess
Blog:KnitClimbJava | Twitter: jsant | Ravelry: wingedsheep
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Session in new browser window
 
Similar Threads
Session -Browser window
How HttpSession is not thread safe
Doubt in session handling
Sessions
Session Management