note 5475 deleted from function.session-register by sniper

From: Date: Thu, 31 Oct 2002 00:44:56 +0000
Subject: note 5475 deleted from function.session-register by sniper
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-38777@lists.php.net to get a copy of this message
Using session variables : start_session() before calling the session_is_registered() or even session_register(). Also make sure your sesion_register() is called like setcookie(), as header. Funny but true, I assumed that the session_register needs to kick off a session but unless you session_start(), cannot not register any variable. Also, if you are checking for any registered variable on an another page, again use session_start() before checking the variable value. But the session_start() doesnt start another session, so you will be fine with the values.

« previous php.notes (#38777) next »