<?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.sessionupdatetimestamphandlerinterface.php',
    1 => 'SessionUpdateTimestampHandlerInterface',
    2 => 'The SessionUpdateTimestampHandlerInterface interface',
  ),
  'up' => 
  array (
    0 => 'book.session.php',
    1 => 'Sessions',
  ),
  'prev' => 
  array (
    0 => 'sessionidinterface.create-sid.php',
    1 => 'SessionIdInterface::create_sid',
  ),
  'next' => 
  array (
    0 => 'sessionupdatetimestamphandlerinterface.updatetimestamp.php',
    1 => 'SessionUpdateTimestampHandlerInterface::updateTimestamp',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/session/sessionupdatetimestamphandlerinterface.xml',
  ),
  'history' => 
  array (
  ),
  'extra_header_links' => 
  array (
    'rel' => 'alternate',
    'href' => '/manual/en/feeds/class.sessionupdatetimestamphandlerinterface.atom',
    'type' => 'application/atom+xml',
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

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

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

 <div class="partintro"><p class="verinfo">(PHP 7, PHP 8)</p>


  <div class="section" id="sessionupdatetimestamphandlerinterface.intro">
   <h2 class="title">Introduction</h2>
   <p class="para">
    <span class="classname"><strong class="classname">SessionUpdateTimestampHandlerInterface</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="sessionupdatetimestamphandlerinterface.synopsis">
   <h2 class="title">Class synopsis</h2>


   <div class="classsynopsis"><div class="classsynopsisinfo">
    
     <span class="modifier">interface</span> <strong class="interfacename"><strong class="interfacename">SessionUpdateTimestampHandlerInterface</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="sessionupdatetimestamphandlerinterface.updatetimestamp.php" class="methodname">updateTimestamp</a></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$id</code></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$data</code></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="sessionupdatetimestamphandlerinterface.validateid.php" class="methodname">validateId</a></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$id</code></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

   }</div>


  </div>

 </div>

 










<h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="sessionupdatetimestamphandlerinterface.updatetimestamp.php">SessionUpdateTimestampHandlerInterface::updateTimestamp</a> — Update timestamp</li><li><a href="sessionupdatetimestamphandlerinterface.validateid.php">SessionUpdateTimestampHandlerInterface::validateId</a> — Validate ID</li></ul>
</div>
<?php manual_footer($setup); ?>