mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
incorporate notes for session_delete.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@64130 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
5a437d80f0
commit
91485d8909
1 changed files with 24 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.58 $ -->
|
||||
<!-- $Revision: 1.59 $ -->
|
||||
<reference id="ref.session">
|
||||
<title>Session handling functions</title>
|
||||
<titleabbrev>Sessions</titleabbrev>
|
||||
|
@ -384,13 +384,35 @@ To continue, <A HREF="nextpage.php?<?=SID?>">click here</A>
|
|||
</funcsynopsis>
|
||||
<simpara>
|
||||
<function>session_destroy</function> destroys all of the data
|
||||
associated with the current session.
|
||||
associated with the current session. It does not unset any of
|
||||
the global variables associated with the session, or unset the
|
||||
session cookie.
|
||||
</simpara>
|
||||
<simpara>
|
||||
This function returns &true; on success and
|
||||
&false; on failure to destroy
|
||||
the session data.
|
||||
</simpara>
|
||||
<para>
|
||||
<example>
|
||||
<title>Destroying a session</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
||||
# Initialize the session.
|
||||
# If you are using session_name("something"), don't forget it now!
|
||||
session_start();
|
||||
# Unset all of the session variables.
|
||||
session_unset();
|
||||
# Finally, destroy the session.
|
||||
session_destroy();
|
||||
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
|
|
Loading…
Reference in a new issue