Fix example that may cause segfaults :(

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@70825 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Yasuo Ohgaki 2002-02-24 06:12:21 +00:00
parent 8d6927c0b2
commit 8b4bb190f4

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.81 $ -->
<!-- $Revision: 1.82 $ -->
<reference id="ref.session">
<title>Session handling functions</title>
<titleabbrev>Sessions</titleabbrev>
@ -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 <varname>$_SESSION</varname> (or
<varname>$HTTP_SESSION_VARS</varname> for PHP 4.0.6 or less) is
used, use <function>unset</function> to unregister session
variable. i.e. unset($_SESSION);
variable. i.e. $_SESSION = array();
</para>
</note>
</refsect1>