<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/book.session.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'en',
  ),
  'this' => 
  array (
    0 => 'class.sessionidinterface.php',
    1 => 'SessionIdInterface',
    2 => 'The SessionIdInterface interface',
  ),
  'up' => 
  array (
    0 => 'book.session.php',
    1 => 'Sessions',
  ),
  'prev' => 
  array (
    0 => 'sessionhandlerinterface.write.php',
    1 => 'SessionHandlerInterface::write',
  ),
  'next' => 
  array (
    0 => 'sessionidinterface.create-sid.php',
    1 => 'SessionIdInterface::create_sid',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/session/sessionidinterface.xml',
  ),
  'history' => 
  array (
  ),
  'extra_header_links' => 
  array (
    'rel' => 'alternate',
    'href' => '/manual/en/feeds/class.sessionidinterface.atom',
    'type' => 'application/atom+xml',
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="class.sessionidinterface" class="reference">

 <h1 class="title">The SessionIdInterface interface</h1>
 

 <div class="partintro"><p class="verinfo">(PHP 5 &gt;= 5.5.1, PHP 7, PHP 8)</p>


  <div class="section" id="sessionidinterface.intro">
   <h2 class="title">Introduction</h2>
   <p class="para">
    <span class="classname"><strong class="classname">SessionIdInterface</strong></span> is an interface which defines optional methods
    for creating a custom session handler. In order to pass a custom
    session handler to <span class="function"><a href="function.session-set-save-handler.php" class="function">session_set_save_handler()</a></span> using its
    <abbr class="abbrev">OOP</abbr> invocation, the class can implement this interface.
   </p>
   <p class="para">
    Note that the callback methods of classes implementing this interface are designed to be called
    internally by PHP and are not meant to be called from user-space code.
   </p>
  </div>


  <div class="section" id="sessionidinterface.synopsis">
   <h2 class="title">Interface synopsis</h2>


   <div class="classsynopsis"><div class="classsynopsisinfo">
    
     <span class="modifier">interface</span> <strong class="interfacename"><strong class="interfacename">SessionIdInterface</strong></strong> {</div>

    <div class="classsynopsisinfo classsynopsisinfo_comment">/* Methods */</div>
    <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><a href="sessionidinterface.create-sid.php" class="methodname">create_sid</a></span>(): <span class="type"><a href="language.types.string.php" class="type string">string</a></span></div>

   }</div>


  </div>

 </div>

 





<h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="sessionidinterface.create-sid.php">SessionIdInterface::create_sid</a> — Create session ID</li></ul>
</div>
<?php manual_footer($setup); ?>