cvs: phpdoc /en/functions session.xml
| From: | Yasuo Ohgaki | Date: | Sun, 24 Feb 2002 06:12:22 +0000 |
| Subject: | cvs: phpdoc /en/functions session.xml | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969342553@lists.php.net to get a copy of this message | ||
yohgaki Sun Feb 24 01:12:22 2002 EDT
Modified files:
/phpdoc/en/functions session.xml
Log:
Fix example that may cause segfaults :(
Index: phpdoc/en/functions/session.xml
diff -u phpdoc/en/functions/session.xml:1.81 phpdoc/en/functions/session.xml:1.82
--- phpdoc/en/functions/session.xml:1.81 Thu Feb 14 20:58:23 2002
+++ phpdoc/en/functions/session.xml Sun Feb 24 01:12:21 2002
@@ -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 @@
// 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 @@
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>