Sessions support doc.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@275450 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Andrei Zmievski 2009-02-09 20:25:46 +00:00
parent 137e212f09
commit ae9e6ebc46

View file

@ -1,9 +1,44 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision: 1.1 $ -->
<!-- $Revision: 1.2 $ -->
<chapter xml:id="memcached.sessions" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>Sessions support</title>
<para>...</para>
<para>Memcached provides a custom session handler that can be used to store
user sessions in memcache. A completely separate memcached instance is used
for that internally, so you can a different server pool if necessary. The
session keys are stored under the prefix
<literal>memc.sess.lock_key.</literal>, so be aware of this if you use the
same server pool for sessions and generic caching.</para>
<para>
<variablelist>
<varlistentry xml:id="memcache.sessions.save-handler">
<term>
<parameter>session.save_handler</parameter>
<type>string</type>
</term>
<listitem>
<para>
Set to <literal>memcached</literal> to enable sessions support.
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="memcache.sessions.save-path">
<term>
<parameter>session.save_path</parameter>
<type>string</type>
</term>
<listitem>
<para>
Defines a comma separated of hostname:port entries to use for session
server pool, for example <literal>"sess1:11211, sess2:11211"</literal>.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</chapter>
<!-- Keep this comment at the end of the file