<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.sessionhandlerinterface.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'de',
  ),
  'this' => 
  array (
    0 => 'sessionhandlerinterface.destroy.php',
    1 => 'SessionHandlerInterface::destroy',
    2 => 'L&ouml;scht eine Session',
  ),
  'up' => 
  array (
    0 => 'class.sessionhandlerinterface.php',
    1 => 'SessionHandlerInterface',
  ),
  'prev' => 
  array (
    0 => 'sessionhandlerinterface.close.php',
    1 => 'SessionHandlerInterface::close',
  ),
  'next' => 
  array (
    0 => 'sessionhandlerinterface.gc.php',
    1 => 'SessionHandlerInterface::gc',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'de',
    'path' => 'reference/session/sessionhandlerinterface/destroy.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="sessionhandlerinterface.destroy" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">SessionHandlerInterface::destroy</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.4.0, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">SessionHandlerInterface::destroy</span> &mdash; <span class="dc-title">Löscht eine Session</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-sessionhandlerinterface.destroy-description">
  <h3 class="title">Beschreibung</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>SessionHandlerInterface::destroy</strong></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>

  <p class="para rdfs-comment">
   Löscht eine Session. Wird von <span class="function"><a href="function.session-regenerate-id.php" class="function">session_regenerate_id()</a></span>
   aufgerufen (bei $destroy = <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>), von <span class="function"><a href="function.session-destroy.php" class="function">session_destroy()</a></span>
   oder wenn <span class="function"><a href="function.session-decode.php" class="function">session_decode()</a></span> fehlschlägt.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-sessionhandlerinterface.destroy-parameters">
  <h3 class="title">Parameter-Liste</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">id</code></dt>
     <dd>
      <p class="para">
       Die ID der Session, die gelöscht werden soll.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-sessionhandlerinterface.destroy-returnvalues">
  <h3 class="title">Rückgabewerte</h3>
  <p class="para">
   Der Rückgabewert (normalerweise <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> bei Erfolg und <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> bei Misserfolg). Es ist zu beachten, dass dieser Wert intern PHP zur Verarbeitung zurückgegeben wird.
  </p>
 </div>


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