Forum Moderators: coopster
Any suggestions?
session_unset();
session_destroy();
in an earlier version of PHP (I think before 4.0) you can just use unset().
unset();
Maybe some of the other guys can clear up using session_unset().
:)
session_destroy() destroys all of the data associated with the current session. It does not unset any of the global variables associated with the session, or unset the session cookie.
session_unset [ca.php.net]
The session_unset() function frees all session variables currently registered
Caution:
Do NOT unset the whole $_SESSION with unset($_SESSION) as this will disable the registering of session variables through the $_SESSION superglobal.
If you look at the example for destroy they show to use unset first then destroy.