Meaningless Drivel is fun!
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
JavaRanch » Java Forums » Java » Servlets
Bookmark "Cookie-Session relation" Watch "Cookie-Session relation" New topic

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

Joined: Jan 10, 2002
Posts: 63852

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

[Asking smart questions] [About Bear] [Books by Bear]
Jessica Sant

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:
subject: Cookie-Session relation
jQuery in Action, 3rd edition