Hi,
I use sessions on my site and i have an admin page where I want to be able
to unset all session variables and destroy the session.
for the moment I do :
<?
session_unset() ;
session_destroy ();
?>
This works perfectly fine for me.
BUT (yes this post has a point)
I just saw in the PHP Manual (for 'session_unset( )')
"Note: If $_SESSION (or $HTTP_SESSION_V ARS for PHP 4.0.6 or less) is used,
use unset() to unregister session variable. i.e. $_SESSION = array();"
As a matter of fact I am using the $_SESSION superglobal to manipulate my
session variables. So I think this applies to me but I don't really
understand how I should unset my session variables. And the unset() manual
page doesn't really help me either.
Can somebody clear that up for me?
Sebastien