note 7780 added to session_register
| From: | rupert at complinet dot com | Date: | Tue, 15 Aug 2000 10:58:06 +0000 |
| Subject: | note 7780 added to session_register | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-1892@lists.php.net to get a copy of this message | ||
<pre>
variables must be set before they can be registered; however, don't fall into the same trap as
i did by doing
$bob= array();
session_register('bob');
and then wonder why $bob always seems to be empty (d'oh!); instead use
if (!isset($bob)) {$bob= array();};
session_register('bob');
http://www.php.net/manual/function.session-register.php