note 12043 added to function.session-is-registered.php
| From: | php-general at lists dot php dot net | Date: | Tue, 20 Mar 2001 09:45:48 +0000 |
| Subject: | note 12043 added to function.session-is-registered.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-12575@lists.php.net to get a copy of this message | ||
session_register() does not set the variable. If you register a variable and do not assign it a
value, on your next page:
session_start();
if (isset($var))
{echo "It is set.";}
else
{echo "It is not set.";}
will display: It is not set.
http://www.php.net/manual/en/function.session-is-registered.php