mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
8d6927c0b2
commit
8b4bb190f4
1 changed files with 3 additions and 3 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue