Different sessions, same client

From: Date: Sun, 23 Jan 2011 06:33:15 +0000
Subject: Different sessions, same client
Groups: php.general 
Request: Send a blank email to php-general+get-310977@lists.php.net to get a copy of this message
Storing any sort of login/auth data in cookies has regularly been panned on this list. The preference seems to be to store whatever login/auth information *must* be stored in the $_SESSION variable. Well and good. My problem, however, is that I have multiple applications in different tabs running on the same server, which may all use the same sub-variables, like "username". As a result, they run into each other. One application will think I'm logged in when I'm not logged in to that application, but to another in the same browser on the same box. So my question is how to prevent this using the standard PHP functions relating to sessions. I'd like different applications in different tabs on the same box/browser to have different sessions, so they don't share data. Thoughts? Paul -- Paul M. Foster http://noferblatz.com

« previous php.general (#310977) next »