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>- [PHP-DOC] cvs: phpdoc /en/functions session.xml Leszek Krupinski
- [PHP-DOC] cvs: phpdoc /en/functions session.xml Yasuo Ohgaki
- [PHP-DOC] cvs: phpdoc /en/functions session.xml Yasuo Ohgaki
- [PHP-DOC] cvs: phpdoc /en/functions session.xml Yasuo Ohgaki
- [PHP-DOC] cvs: phpdoc /en/functions session.xml Yasuo Ohgaki
- [PHP-DOC] cvs: phpdoc /en/functions session.xml Yasuo Ohgaki
- [PHP-DOC] cvs: phpdoc /en/functions session.xml Yasuo Ohgaki
- [PHP-DOC] cvs: phpdoc /en/functions session.xml Yasuo Ohgaki
- [PHP-DOC] cvs: phpdoc /en/functions session.xml Yasuo Ohgaki
- [PHP-DOC] cvs: phpdoc /en/functions session.xml Yasuo Ohgaki
- Re: [PHP-DOC] cvs: phpdoc /en/functions session.xml Yasuo Ohgaki
- Re: [PHP-DOC] cvs: phpdoc /en/functions session.xml Martin Samesch
- [PHP-DOC] cvs: phpdoc /en/functions session.xml Derick Rethans
- [PHP-DOC] cvs: phpdoc /en/functions session.xml Andrew Lindeman
- Re: [PHP-DOC] cvs: phpdoc /en/functions session.xml Gabor Hojtsy
- Re: [PHP-DOC] cvs: phpdoc /en/functions session.... Andrew Lindeman
- Re: [PHP-DOC] cvs: phpdoc /en/functions sess... Rasmus Lerdorf
- [PHP-DOC] Stupid question about installing P... Thales
- Re: [PHP-DOC] cvs: phpdoc /en/functions sess... Gabor Hojtsy
- Re: [PHP-DOC] cvs: phpdoc /en/functions ... Andrew Lindeman
