diff --git a/functions/session.xml b/functions/session.xml index 2c1f5cc813..0e27dc3bbd 100644 --- a/functions/session.xml +++ b/functions/session.xml @@ -1,5 +1,5 @@ - + Session handling functions Sessions @@ -544,7 +544,7 @@ session_destroy(); // If you are using session_name("something"), don't forget it now! session_start(); // Unset all of the session variables. -unset($_SESSION); +$_SESSION = array(); // Finally, destroy the session. session_destroy(); @@ -833,7 +833,7 @@ $_SESSION["spongebob"] = "He's got square pants."; If $_SESSION (or $HTTP_SESSION_VARS for PHP 4.0.6 or less) is used, use unset to unregister session - variable. i.e. unset($_SESSION); + variable. i.e. $_SESSION = array();