Page 1 of 1

referencing a session using a local variable

Posted: Thu Sep 02, 2004 8:17 am
by talorlik
hi all,

if i reference a session using the following code:

Code: Select all

<php $myvar = &$_SESSION['myvar'] ?>
does that mean that when i unset the local variable i also unset the session???

cheers,
Tal.

Posted: Thu Sep 02, 2004 10:03 am
by feyd
IIRC, yes. everything you do to $myvar outside of another =& will affect the actual variable.