Re: Re: sessions

From: Date: Fri, 26 Jul 2002 18:19:03 +0000
Subject: Re: Re: sessions
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-109841@lists.php.net to get a copy of this message
Could you trye if (!empty($HTTP_SESSION_VARS['valid_user']) use $HTTP_SESSION_VARS HTH Regards, Andrey ----- Original Message ----- From: "Tyler Durdin" <linuxgeek23@hotmail.com> To: <php-general@lists.php.net> Sent: Friday, July 26, 2002 9:12 PM Subject: Re: [PHP] Re: sessions > Still getting the same message. This script used to work perfectly in an > older version of php. Could it be a problem with how I am setting the > sessions. Has anything changed with how we code sessions? > > > >It's because you are unregistering the valid_user variable, but, the > >old_user var you defined early on still exists. So, "if > >(!empty($old_user))" > >will equal FALSE, giving you the result you are getting. Change it to "if > >(!empty($valid_user))". > > > >Monty > > > > > _________________________________________________________________ > Chat with friends online, try MSN Messenger: > http://messenger.msn.com > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#109841) next »