Two Laptop Bag*
The moose likes Servlets and the fly likes Servlets HttpSession Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlets HttpSession" Watch "Servlets HttpSession" New topic
Author

Servlets HttpSession

Roy kachouh
Greenhorn

Joined: Jan 10, 2003
Posts: 5
How can I ensure that when a user opens up a new browser window, my servlet will create a new corresponding HttpSession.
Thanks in advance.
Roy
Chris Smith
Ranch Hand

Joined: May 03, 2002
Posts: 42
You can't. Sorry.
Jessica Sant
Sheriff

Joined: Oct 17, 2001
Posts: 4313

"roy rogers"- two things...
1st thing:
Welcome to the JavaRanch! We like to keeep a nice professional image here at the JavaRanch (despite the big one-eyed moose). Please adjust your displayed name to match the JavaRanch Naming Policy.
You can change it here.
2nd thing:
just to expand on Chris' reply -- it all depends on the browser and HOW the user creates this new window. If you open multiple Internet Explorer windows by double clicking on the IE icon -- each window will have a different Session ID. However if you use Ctrl+N to open a new window -- the two will have the same Session ID. No matter how you open a new Netscape window -- the windows will share a Session ID.
It's a browser issue, you have no control over it.
Hope that helps... Thanks in advance for fixing your displayed name and again welcome to the JavaRanch!


- Jess
Blog:KnitClimbJava | Twitter: jsant | Ravelry: wingedsheep
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Servlets HttpSession