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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unique Sessions On The Same Computer 1

Status
Not open for further replies.

Azathoth

Technical User
Jul 14, 2003
61
US
I'm having some issues testing a login system. I log in a one user, then open a new browser window. If I then call session_destroy, the user who is allready logged in will have his session destroyed. Also, if I log in with a user while another user is logged into the system allready, the user who was originally logged in seems to get the session that was just created for the more recent login.

So I guess my question is: is there any way to create unique sessions for different users on the same computer (using different browser windows)?
 
Nothing deterministic.

With IE, sharing of session data (or session ID cookies) depends on how the various windows are opened and when.

Tabbed browsers, such as Opera or Firefox always share the settings. Or at least, Opera does.

But this is expected behavior. It is very rare for two people to be using the same keyboard and mouse at the same time.

Want the best answers? Ask the best questions!

TANSTAAFL!!
 
True, and makes sense.

Sure makes it difficult to test though.
 
True. Your only possibilities are to use multiple brands of browsers on a single computer or to use multiple computers.

You might also dig around for web application testing tools. You might also write one yourself.

Want the best answers? Ask the best questions!

TANSTAAFL!!
 
Cross-browser testing - didn't think of that. Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top