note 11469 added to session_register
| From: | millz at incogen dot com | Date: | Wed, 21 Feb 2001 22:41:33 +0000 |
| Subject: | note 11469 added to session_register | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-11384@lists.php.net to get a copy of this message | ||
When trying to register a variable, make sure that you make it global before you give it the value
you wish to store:
For ex., inside a class this will not work...
$storeMe = "stored value";
session_register("storeMe");
but this will:
global $storeMe;
$storeMe = "stored value";
session_register("storeMe");
http://www.php.net/manual/en/function.session-register.php