aspose file tools*
The moose likes JSP and the fly likes Two browser instances sharing the same session Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Two browser instances sharing the same session" Watch "Two browser instances sharing the same session" New topic
Author

Two browser instances sharing the same session

sreenath reddy
Ranch Hand

Joined: Sep 21, 2003
Posts: 415
Hi all

I am facing a weird scenario where two new browser instances are using the same session . I am using tomcat as my webserver and the browsers are opened(with out using Ctrl-N ...) , but strangely two browsers are having the same session .. I confirmed this by printing session.getId() in the action class(servlet) and they are the same ...

What might have gone wrong ??? This is happening recently in my site (Past 1-2 yrs i never encountered this...)
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
I believe that's the expected behavior if you open the browser by using file->new or CNTRL-N
[ February 10, 2006: Message edited by: Bosun Bello ]

Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
sreenath reddy
Ranch Hand

Joined: Sep 21, 2003
Posts: 415
I think you are confused. The behaviour is fine if the browser is opened using File..New or Ctrl-N as both of them share the same session

I am opening two new instances using Iexplorer.exe and i am not able to understand how they are sharing the same session ...

Something somewhere is wrong ..if any one has a clue abt this i would be thankful
Anupam Sinha
Ranch Hand

Joined: Apr 13, 2003
Posts: 1088
I would suggest you to update your IE.
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

Did you try with another browser ?


[My Blog]
All roads lead to JavaRanch
Stefan Evans
Bartender

Joined: Jul 06, 2005
Posts: 1018
Are you absolutely certain you are clicking on the explorer shortcut.
Its not a shortcut to an internet website? (which often uses the open windows)
Check task manager to see how many copies of IE you actually have running.
What version are you using?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Two browser instances sharing the same session