mirror of
https://github.com/php/doc-ja.git
synced 2026-04-28 02:23:18 +02:00
aafd5dbf03
This was meant to be used when $HTTP_SESSION_VARS was still around
107 lines
2.6 KiB
XML
107 lines
2.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: 8a152ef592357f107275027cdd97f1cbbcf52f08 Maintainer: hirokawa Status: ready -->
|
|
<!-- CREDITS: shimooka,mumumu -->
|
|
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.session-unset">
|
|
<refnamediv>
|
|
<refname>session_unset</refname>
|
|
<refpurpose>全てのセッション変数を開放する</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type>bool</type><methodname>session_unset</methodname>
|
|
<void/>
|
|
</methodsynopsis>
|
|
<para>
|
|
関数 <function>session_unset</function>
|
|
は現在登録されている全てのセッション変数を開放します。
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
&no.function.parameters;
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
&return.success;
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="changelog">
|
|
&reftitle.changelog;
|
|
<informaltable>
|
|
<tgroup cols="2">
|
|
<thead>
|
|
<row>
|
|
<entry>&Version;</entry>
|
|
<entry>&Description;</entry>
|
|
</row>
|
|
</thead>
|
|
<tbody>
|
|
<row>
|
|
<entry>7.2.0</entry>
|
|
<entry>
|
|
この関数の戻り値の型は <type>bool</type> になりました。
|
|
以前は <type>void</type> でした。
|
|
</entry>
|
|
</row>
|
|
</tbody>
|
|
</tgroup>
|
|
</informaltable>
|
|
</refsect1>
|
|
|
|
<refsect1 role="notes">
|
|
&reftitle.notes;
|
|
<note>
|
|
<para>
|
|
<varname>$_SESSION</varname>
|
|
が使用されている場合、セッション変数の登録を削除するために
|
|
<function>unset</function>
|
|
すなわち、<code>unset($_SESSION['varname']);</code>
|
|
を使用してください。
|
|
</para>
|
|
</note>
|
|
<caution>
|
|
<para>
|
|
<varname>$_SESSION</varname> スーパーグローバルを使用した
|
|
セッション変数の登録が不可能になってしまうため、
|
|
<code>unset($_SESSION)</code> を使って
|
|
<varname>$_SESSION</varname> を完全に unset しないでください。
|
|
</para>
|
|
</caution>
|
|
<note>
|
|
<para>
|
|
<function>session_unset</function> 関数は、
|
|
<code>$_SESSION = []</code> と同等です。
|
|
</para>
|
|
</note>
|
|
</refsect1>
|
|
|
|
</refentry>
|
|
|
|
<!-- 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:"~/.phpdoc/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
|
|
-->
|