There is only the one $_SESSION superglobal in PHP - and session_start doesn't take any parameters - so the builtin sessions in PHP undoubtedly aren't anticipating a need for this. If you are just trying to store more data - you shouldn't have a problem, just use $_SESSION as an array like normal, and for each application use a named key as its own array.
e.g. instead of using $_SESSION['username'] in both of two applications, use $_SESSION['first_session']['username'] and $_SESSION['second_session']['username'] or something similar in each. I assume the reason you're encountering some sort of problem is because you have two canned applications that both conflict with session variables, or you want to run the same application twice? The sessions are tied to the hostname - so if you make a virtual server with another address (e.g. www.something.com and app.something.com or equivalent) you will, in effect, get your two sessions. Beyond this, I'd need to know more of what you're intending to be of any help. - Martin Norland, Database / Web Developer, International Outreach x3257 The opinion(s) contained within this email do not necessarily represent those of St. Jude Children's Research Hospital. -----Original Message----- From: Andre Matos [mailto:[EMAIL PROTECTED] Sent: Thursday, October 21, 2004 2:20 PM To: [EMAIL PROTECTED] Subject: [PHP-DB] Two session for the same user, possible? Hi List, Is it possible to have two sessions for the same user in php? If yes, how can I implement this? I am currently using one without problem. However, when I try to create a second session, the first one is lost. Thanks for any help. Andre -- Andre Matos [EMAIL PROTECTED] -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php