2002-04-15 00:12:54 +00:00
|
|
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
2003-01-22 18:34:59 +00:00
|
|
|
<!-- $Revision: 1.4 $ -->
|
2002-04-15 00:12:54 +00:00
|
|
|
<!-- splitted from ./en/functions/session.xml, last change in rev 1.2 -->
|
|
|
|
<refentry id="function.session-start">
|
|
|
|
<refnamediv>
|
|
|
|
<refname>session_start</refname>
|
|
|
|
<refpurpose>Initialize session data</refpurpose>
|
|
|
|
</refnamediv>
|
|
|
|
<refsect1>
|
|
|
|
<title>Description</title>
|
|
|
|
<methodsynopsis>
|
|
|
|
<type>bool</type><methodname>session_start</methodname>
|
|
|
|
<void/>
|
|
|
|
</methodsynopsis>
|
|
|
|
<simpara>
|
2003-01-22 18:34:59 +00:00
|
|
|
<function>session_start</function> creates a session or resumes
|
|
|
|
the current one based on the current session id that's being
|
|
|
|
passed via a request, such as GET, POST, or a cookie.
|
2002-04-15 00:12:54 +00:00
|
|
|
</simpara>
|
|
|
|
<simpara>
|
|
|
|
If you want to use a named session, you must call
|
|
|
|
<function>session_name</function> before calling
|
|
|
|
<function>session_start</function>.
|
|
|
|
</simpara>
|
|
|
|
<simpara>
|
|
|
|
This function always returns &true;.
|
|
|
|
</simpara>
|
|
|
|
<note>
|
|
|
|
<para>
|
|
|
|
If you are using cookie-based sessions, you must call
|
|
|
|
<function>session_start</function> before anything is output to the
|
|
|
|
browser.
|
|
|
|
</para>
|
|
|
|
</note>
|
|
|
|
<simpara>
|
|
|
|
<function>session_start</function> will register internal output
|
|
|
|
handler for URL rewriting when <literal>trans-sid</literal> is
|
|
|
|
enabled. If a user uses <literal>ob_gzhandler</literal> or like
|
|
|
|
with <function>ob_start</function>, the order of output handler
|
|
|
|
is important for proper output. For example, user must register
|
|
|
|
<literal>ob_gzhandler</literal> before session start.
|
|
|
|
</simpara>
|
|
|
|
<note>
|
|
|
|
<simpara>
|
2002-09-16 20:42:35 +00:00
|
|
|
Use of <link linkend="ini.zlib.output-compression">zlib.output_compression</link>
|
|
|
|
is recommended rather than <function>ob_gzhandler</function>
|
2002-04-15 00:12:54 +00:00
|
|
|
</simpara>
|
|
|
|
</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:"../../../../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
|
|
|
|
-->
|