RE: [PHP] Session Question

From: Date: Thu, 01 May 2003 22:19:27 +0000
Subject: RE: [PHP] Session Question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-146019@lists.php.net to get a copy of this message
> I am using a Session based Login Module on my site. I register a > session called 'valid_user' on successful login. If another script on > the same site, dealing with another database registers a session using > the same name, what are the results? > > Is it possible? Thanks in advance. Sure it is, if I understand you correctly. If you set $_SESSION['valid_user'] and then another part of your script/site tries to set that again for the same user, the second value will just overwrite the first. It's just a variable... How that affects your script depends upon your actual code, though. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/

« previous php.general (#146019) next »