note 7585 added to Session handling functions
| From: | rikki at ultramail dot co dot uk | Date: | Tue, 08 Aug 2000 08:59:50 +0000 |
| Subject: | note 7585 added to Session handling functions | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-615@lists.php.net to get a copy of this message | ||
With reference to using arrays as session variables: declaring it in session_register() seems not
to work ... <br><br>
session_register($ARRAY[]) will throw up a fatal error. Instead, try:
<br><br>
session_register($ARRAY); // declare session variable<br>
$ARRAY = array(); // set variable type<br>
<br>
Then continue as normal. Apologies if this is trivial, but I'm new at this, and I noticed
other people had a similar problem to mine.
http://www.php.net/manual/ref.session.php