2010-03-28 22:10:10 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2009-07-11 08:54:10 +00:00
|
|
|
<!-- $Revision$ -->
|
2020-11-29 15:51:04 +00:00
|
|
|
<refentry xml:id="function.session-encode" xmlns="http://docbook.org/ns/docbook">
|
2007-06-15 00:16:44 +00:00
|
|
|
<refnamediv>
|
|
|
|
<refname>session_encode</refname>
|
2012-02-19 20:03:24 +00:00
|
|
|
<refpurpose>Encodes the current session data as a session encoded string</refpurpose>
|
2007-06-15 00:16:44 +00:00
|
|
|
</refnamediv>
|
2012-02-19 20:03:24 +00:00
|
|
|
|
2007-06-15 00:16:49 +00:00
|
|
|
<refsect1 role="description">
|
|
|
|
&reftitle.description;
|
2007-06-15 00:16:44 +00:00
|
|
|
<methodsynopsis>
|
2020-11-29 15:51:04 +00:00
|
|
|
<type class="union"><type>string</type><type>false</type></type><methodname>session_encode</methodname>
|
2007-06-15 00:16:44 +00:00
|
|
|
<void/>
|
|
|
|
</methodsynopsis>
|
|
|
|
<para>
|
2012-02-20 15:20:33 +00:00
|
|
|
<function>session_encode</function> returns a serialized string of the
|
|
|
|
contents of the current session data stored in the $_SESSION superglobal.
|
|
|
|
</para>
|
|
|
|
<para>
|
2016-05-17 22:22:47 +00:00
|
|
|
By default, the serialization method used is internal to PHP, and is not the same as <function>serialize</function>.
|
|
|
|
The serialization method can be set using <link linkend="ini.session.serialize-handler">session.serialize_handler</link>.
|
2007-06-15 00:16:44 +00:00
|
|
|
</para>
|
2007-06-15 00:16:49 +00:00
|
|
|
</refsect1>
|
|
|
|
|
2021-06-09 09:05:20 +00:00
|
|
|
<refsect1 role="parameters">
|
|
|
|
&reftitle.parameters;
|
|
|
|
&no.function.parameters;
|
|
|
|
</refsect1>
|
|
|
|
|
2007-06-15 00:16:49 +00:00
|
|
|
<refsect1 role="returnvalues">
|
|
|
|
&reftitle.returnvalues;
|
2007-06-15 00:16:44 +00:00
|
|
|
<para>
|
2020-11-29 15:51:04 +00:00
|
|
|
Returns the contents of the current session encoded, &return.falseforfailure;.
|
2007-06-15 00:16:44 +00:00
|
|
|
</para>
|
|
|
|
</refsect1>
|
2007-06-15 00:16:49 +00:00
|
|
|
|
2012-09-06 21:28:06 +00:00
|
|
|
<refsect1 role="notes">
|
|
|
|
&reftitle.notes;
|
|
|
|
<warning>
|
|
|
|
<para>
|
2015-03-23 16:54:38 +00:00
|
|
|
Must call <function>session_start</function> before using <function>session_encode</function>.
|
2012-09-06 21:28:06 +00:00
|
|
|
</para>
|
|
|
|
</warning>
|
|
|
|
</refsect1>
|
|
|
|
|
2007-06-15 00:16:49 +00:00
|
|
|
<refsect1 role="seealso">
|
|
|
|
&reftitle.seealso;
|
|
|
|
<para>
|
|
|
|
<simplelist>
|
|
|
|
<member><function>session_decode</function></member>
|
2012-02-20 15:20:33 +00:00
|
|
|
<member><link linkend="ini.session.serialize-handler">session.serialize_handler</link></member>
|
2007-06-15 00:16:49 +00:00
|
|
|
</simplelist>
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
|
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
|
2009-09-25 07:04:39 +00:00
|
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
2002-04-15 00:12:54 +00:00
|
|
|
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
|
|
|
|
-->
|