Re: still on sessions

From: Date: Fri, 26 Jul 2002 19:31:39 +0000
Subject: Re: still on sessions
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-109858@lists.php.net to get a copy of this message
if (count($_SESSION)){ } or if (isset($_SESSION['logged'])){ } Regards, Andrey ----- Original Message ----- From: "Tyler Durdin" <linuxgeek23@hotmail.com> To: <php-general@lists.php.net> Sent: Friday, July 26, 2002 10:28 PM Subject: [PHP] still on sessions > alrigh I have switched everything over to the $_Session['variable'] style of > session. Next question, I have a little script that used to check if the > session was registered and if it was not it would redirect to the login > page. How do i accomplish this now that i cannot check if the session is > registered? Here is what i have. > > <? > session_start(); > if (session_registered("valid_user2')) { > echo " you are registered"; > } else { > header("Location: http://loginpage.com"); > } > ?> > > How do I check if a session is active/registered or whatever it is so i cn > still redirect or assign variables? > > > > _________________________________________________________________ > Join the world’s largest e-mail service with MSN Hotmail. > http://www.hotmail.com > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#109858) next »