2009-02-06 23:28:52 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2009-07-11 08:02:54 +00:00
|
|
|
<!-- $Revision$ -->
|
2009-02-06 23:28:52 +00:00
|
|
|
|
|
|
|
<chapter xml:id="memcached.sessions" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
|
|
<title>Sessions support</title>
|
2009-02-09 20:25:46 +00:00
|
|
|
<para>Memcached provides a custom session handler that can be used to store
|
|
|
|
user sessions in memcache. A completely separate memcached instance is used
|
2009-05-09 22:18:23 +00:00
|
|
|
for that internally, so you can use a different server pool if necessary. The
|
2009-02-09 20:25:46 +00:00
|
|
|
session keys are stored under the prefix
|
2009-03-30 18:02:18 +00:00
|
|
|
<literal>memc.sess.key.</literal>, so be aware of this if you use the
|
2009-02-09 20:25:46 +00:00
|
|
|
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>
|
2009-05-10 07:38:24 +00:00
|
|
|
Defines a comma separated of <literal>hostname:port</literal> entries to
|
|
|
|
use for session server pool, for example
|
|
|
|
<literal>"sess1:11211, sess2:11211"</literal>.
|
2009-02-09 20:25:46 +00:00
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
</variablelist>
|
|
|
|
</para>
|
2009-02-06 23:28:52 +00:00
|
|
|
</chapter>
|
|
|
|
|
|
|
|
<!-- 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"
|
2009-02-06 23:28:52 +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
|
|
|
|
-->
|