Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Session Quickie

Status
Not open for further replies.

relisys

Programmer
Mar 6, 2003
65
GB
Hey guys,

Using sessions for a small web app. User gets session ID on login which is then used to track the users details.

Hitting my head against the old "Multiple Window of a Single Browser Instance". To recap - new instance of a browser (say from Start -> IE) creates a new session in the new memory area for the new instance (phew!)

However, a new window of an existing instance (In IE File -> New -> Window) uses the same memory space. So if I log in in the browser, then open a new window of the browser and log in with another user, both windows will have their sessions set to the new browser, which will confuse the first browser into "tracking" the new user.

Is there anyway to prevent this. I get the session at log in, save it to a database and use it to load the user details etc when they visit new pages until it is removed at log out. Is there anything else I could save to try to keep track of the users.

Cheers!


Relisys
 
Is this a testing scenario?
Normally users don't share a desktop at the same time.

But if you need this to test, you could install a different browser (mozilla, opera) for the new user.

On linux you could even start multiple instances of good old lynx :) .
 
Currently is used for testing, but there is a possibility of a user with both standard user and admin user accounts logging in "in parallel" which i'd like to try and handle - at the moment it is feasible that a user without logging out correctly could end up seeing errors/causing problems.

Any ideas?

Cheers!


Relisys
 
By the way - opening a new browser instance of IE still works without the need for a Mozilla or another browser - its only when COntrol N or a new window of the same iexplore.exe process is used to log in that the difficulty arises.... if you understand what i'm going on about!! (sorry not that clear!)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top