Click to See Complete Forum and Search --> : same sessionId


aminur
January 29th, 2003, 12:36 AM
Hi,

I have two application running in a single browser(Say two login pages in Internet explorer separated in frames).
Now i sent a request to login from both the frames.
After getting the response from the container i m printing the session id of HttpSession.What I get is same session id in both the frame.
However if i printed the session object itself i got two different objects.
Now i am unable to understand how two different request printed the same session Id but the different session object.

And if the session id for two application is same then can i set an attribute to the session from one application and retrieve it from the other window.
Is it the case that Internet explorer carries the same session across different window?

dlorde
January 29th, 2003, 05:48 PM
It is as you have found - you will get the same session ID from multiple accesses from a single browser 'session' (i.e. from a single browser instance running on the client). You get two different session objects on the server simply because a new session object is created each time you log in. Both session objects objects will have the same session ID because they share the same browser instance and therefore the same client to server session.

Every man has three characters: that which he exhibits, that which he has, and that which he thinks he has...