session array

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
hi all,

Can I thread a session as an array and do:

for ($i=0; $i<$this->aantalStemmen; $i++)
 $_SESSION['stem'][$i] = NULL;


Re: session array

Quoted text here. Click to load it

don't know what you are trying to do,

meaby unset($_SESSION['stem'][$i]);

Tim Van Wassenhove <

Re: session array

Gecke Rn wrote:

Quoted text here. Click to load it
of course you can.

a session variable may also be an array!

$_SESSION['var'] = array();
$_SESSION['var'][] = 'new value';


"The goal of Computer Science is to build something that will last at
least until we've finished building it." -- unknown

Site Timeline