More sessions...

From: Date: Sun, 22 Aug 1999 20:41:11 +0000
Subject: More sessions...
Groups: php.version4 
Request: Send a blank email to php-version4+get-3649@lists.php.net to get a copy of this message
I've created a session variable called logged. Using an include file, I want to test $logged on subsequent pages... session start(); global $logged; if(!session_is_registered("logged")) { header("Location:default.php"); } default.php would be a login page to set the $logged variable. So if you're not logged you're redirected to the login page. Unfortunately, when I try this, my machine goes into a loop and I have to restart apache. This is beta2 under Linux Apache, btw. What am I missing? _______________________________________________________________ Get Free Email and Do More On The Web. Visit http://www.msn.com

« previous php.version4 (#3649) next »