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 Cookie-Session relation 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 "Cookie-Session relation" Watch "Cookie-Session relation" New topic
Author

Cookie-Session relation

Brusk Baran
Ranch Hand

Joined: Nov 15, 2001
Posts: 132
I know that session sends the cookie in order to recognize the user the next request he attempts.
What happens exactly when I make a CTRL-N at Internet Explorer for example..
or open another IE window, or another type of Browser?
is the cookie the same??
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60767
    
  65

Under Windows at least, IE windows created via Ctrl-N will share cookies with the original window.
hth,
bear


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Jessica Sant
Sheriff

Joined: Oct 17, 2001
Posts: 4313

the behavior is totally dependent on the browser.
From what I understand: if you open another IE window by double clicking on the icon -- that window will have a DIFFERENT session from the other. If you open another IE window by hitting Ctrl+N of File|New they will SHARE session.
For other browsers such as Opera and Netscape -- no matter how you open the other windows, you will still SHARE session between the windows.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Cookie-Session relation
 
Similar Threads
session question
setInterval Overhead
novice Query about Applications
HttpSession
transfer from jsp to servlet