From 8b4bb190f4b39a8064dc163400cb2f86f8231a41 Mon Sep 17 00:00:00 2001 From: Yasuo Ohgaki Date: Sun, 24 Feb 2002 06:12:21 +0000 Subject: [PATCH] Fix example that may cause segfaults :( git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@70825 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/session.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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();