RE: [PHP] Something is wrong with my sessions..

From: Date: Fri, 19 Jul 2002 14:25:03 +0000
Subject: RE: [PHP] Something is wrong with my sessions..
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-108511@lists.php.net to get a copy of this message
Yes, I do, I mistyped when I was putting the message in. if ($row = mysql_fetch_array($finduser)) { // process login $VALID_USER = '1'; session_register("VALID_USER"); ... ... } else { $FAILED = '1'; } -----Original Message----- From: Rasmus Lerdorf [mailto:rasmus@php.net] Sent: Friday, July 19, 2002 10:09 AM To: Chad Day Cc: php-general@lists.php.net Subject: Re: [PHP] Something is wrong with my sessions.. > login.php: > > session_start(); > > (logic) > > $VALID_USER = '1'; > session_register("OL_VALID_USER"); What's the point of doing a session_register on OL_VALID_USER when you do not set this variable in login.php? Is it coming in via some other mechanism? -Rasmus

« previous php.general (#108511) next »