note 5475 modified in session_register by ronabop
| From: | ronabop@php.net | Date: | Thu, 17 Aug 2000 08:46:00 +0000 |
| Subject: | note 5475 modified in session_register by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-2041@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.
http://www.php.net/manual/function.session-register.php