php-doc-en/reference/session/functions/session-status.xml

68 lines
1.8 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<refentry xml:id="function.session-status" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>session_status</refname>
<refpurpose>Returns the current session status</refpurpose>
</refnamediv>
<refsect1 role="description"><!-- {{{ -->
&reftitle.description;
<methodsynopsis role="procedural">
<type>int</type><methodname>session_status</methodname>
<void />
</methodsynopsis>
<para>
<function>session_status</function> is used to return the current session status.
</para>
</refsect1><!-- }}} -->
<refsect1 role="returnvalues"><!-- {{{ -->
&reftitle.returnvalues;
<para>
<itemizedlist>
<listitem>
<simpara><constant>PHP_SESSION_DISABLED</constant> if sessions are disabled.</simpara>
</listitem>
<listitem>
<simpara><constant>PHP_SESSION_NONE</constant> if sessions are enabled, but none exists.</simpara>
</listitem>
<listitem>
<simpara><constant>PHP_SESSION_ACTIVE</constant> if sessions are enabled, and one exists.</simpara>
</listitem>
</itemizedlist>
</para>
</refsect1><!-- }}} -->
<refsect1 role="seealso"><!-- {{{ -->
&reftitle.seealso;
<simplelist>
<member><function>session_start</function></member>
</simplelist>
</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
-->