Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
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 The Software Craftsman this week in the Agile forum!
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: 62312

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

[Asking smart questions] [Bear's FrontMan] [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.
Have you tried LearnNowOnline?
subject: Cookie-Session relation