2002-04-15 00:12:54 +00:00
|
|
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
2009-07-11 08:54:10 +00:00
|
|
|
<!-- $Revision$ -->
|
2007-06-20 22:25:43 +00:00
|
|
|
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.session-unset">
|
2007-06-15 00:16:44 +00:00
|
|
|
<refnamediv>
|
|
|
|
<refname>session_unset</refname>
|
|
|
|
<refpurpose>Free all session variables</refpurpose>
|
|
|
|
</refnamediv>
|
2007-06-15 00:16:49 +00:00
|
|
|
|
|
|
|
<refsect1 role="description">
|
|
|
|
&reftitle.description;
|
2007-06-15 00:16:44 +00:00
|
|
|
<methodsynopsis>
|
|
|
|
<type>void</type><methodname>session_unset</methodname>
|
|
|
|
<void/>
|
|
|
|
</methodsynopsis>
|
|
|
|
<para>
|
|
|
|
The <function>session_unset</function> function frees all session variables
|
|
|
|
currently registered.
|
|
|
|
</para>
|
2007-06-15 00:16:49 +00:00
|
|
|
</refsect1>
|
|
|
|
|
|
|
|
<refsect1 role="returnvalues">
|
|
|
|
&reftitle.returnvalues;
|
|
|
|
<para>
|
2007-06-24 02:18:15 +00:00
|
|
|
&return.void;
|
2007-06-15 00:16:49 +00:00
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
|
|
|
|
<refsect1 role="notes">
|
|
|
|
&reftitle.notes;
|
2007-06-15 00:16:44 +00:00
|
|
|
<note>
|
|
|
|
<para>
|
2007-06-15 00:16:49 +00:00
|
|
|
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 a session variable, i.e.
|
|
|
|
<literal>unset ($_SESSION['varname']);</literal>.
|
2007-06-15 00:16:44 +00:00
|
|
|
</para>
|
|
|
|
</note>
|
2007-06-15 00:16:49 +00:00
|
|
|
<caution>
|
|
|
|
<para>
|
|
|
|
Do NOT unset the whole <varname>$_SESSION</varname> with
|
|
|
|
<literal>unset($_SESSION)</literal> as this will disable the registering
|
|
|
|
of session variables through the <varname>$_SESSION</varname> superglobal.
|
|
|
|
</para>
|
|
|
|
</caution>
|
2007-06-15 00:16:44 +00:00
|
|
|
</refsect1>
|
2007-06-15 00:16:49 +00:00
|
|
|
|
2007-06-15 00:16:44 +00:00
|
|
|
</refentry>
|
2002-04-15 00:12:54 +00:00
|
|
|
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
|
|
Local variables:
|
|
|
|
mode: sgml
|
|
|
|
sgml-omittag:t
|
|
|
|
sgml-shorttag:t
|
|
|
|
sgml-minimize-attributes:nil
|
|
|
|
sgml-always-quote-attributes:t
|
|
|
|
sgml-indent-step:1
|
|
|
|
sgml-indent-data:t
|
|
|
|
indent-tabs-mode:nil
|
|
|
|
sgml-parent-document:nil
|
|
|
|
sgml-default-dtd-file:"../../../../manual.ced"
|
|
|
|
sgml-exposed-tags:nil
|
|
|
|
sgml-local-catalogs:nil
|
|
|
|
sgml-local-ecat-files:nil
|
|
|
|
End:
|
|
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
|
|
vim: et tw=78 syn=sgml
|
|
|
|
vi: ts=1 sw=1
|
|
|
|
-->
|