<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/book.memcached.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'it',
  ),
  'this' => 
  array (
    0 => 'memcached.sessions.php',
    1 => 'Sessions support',
    2 => 'Sessions support',
  ),
  'up' => 
  array (
    0 => 'book.memcached.php',
    1 => 'Memcached',
  ),
  'prev' => 
  array (
    0 => 'memcached.callbacks.read-through.php',
    1 => 'Read-through cache callbacks',
  ),
  'next' => 
  array (
    0 => 'class.memcached.php',
    1 => 'Memcached',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/memcached/sessions.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="memcached.sessions" class="chapter">
 <h1 class="title">Sessions support</h1>

 <p class="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 use a different server pool if necessary. The
  session keys are stored under the prefix
  <code class="literal">memc.sess.key.</code>, so be aware of this if you use the
  same server pool for sessions and generic caching.</p>
 <p class="para">
  <dl>

   
    <dt id="memcache.sessions.save-handler">
     <code class="parameter">session.save_handler</code>
     <span class="type"><a href="language.types.string.php" class="type string">string</a></span>
    </dt>
    <dd>
     <p class="para">
      Set to <code class="literal">memcached</code> to enable sessions support.
     </p>
    </dd>
   

   
    <dt id="memcache.sessions.save-path">
     <code class="parameter">session.save_path</code>
     <span class="type"><a href="language.types.string.php" class="type string">string</a></span>
    </dt>
    <dd>
     <p class="para">
      Defines a comma separated of <code class="literal">hostname:port</code> entries to
      use for session server pool, for example
      <code class="literal">&quot;sess1:11211, sess2:11211&quot;</code>.
     </p>
    </dd>
   

  </dl>
 </p>
</div>
<?php manual_footer($setup); ?>