I'm a bit confused by session variables. I'm of the impression that I can do the following:
$_SESSION['var'] = $somevariable;
and then in subsequent scripts do the following:
$somevariable = $_SESSION['var'];
this seems to work just fine, by the way, and I did not register the variable, i.e., I didn't do a
session_register('var');
the problem somes when I do the following:
unset($_SESSION['var']);
the session variable is NOT reset. So when I do:
isset($_SESSION['var']) it returns true even if I unset it immediately before calling the new script.
I know there is quite a bit of e-mail on unsetting globals within functions but this specifically is dealing with the $_SESSION global.
Any insights out there?
r