array in sessions
| From: | Christian Dechery | Date: | Wed, 28 Mar 2001 01:36:32 +0000 |
| Subject: | array in sessions | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-45806@lists.php.net to get a copy of this message | ||
How do I store (and update) an array within a session...
Like I'd have
<?php
session_start();
$time["page1"]="20";
//here, should I do this?
session_register("time["page1"]");
//or this?
session_register("time");
?>
cuz I'll have more pages...
$time["page20"]="300";
is this going to automatically load into the session vars or I have to do something first?
____________________________
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer