<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.sessionhandler.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ru',
  ),
  'this' => 
  array (
    0 => 'sessionhandler.destroy.php',
    1 => 'SessionHandler::destroy',
    2 => 'Уничтожает сессию',
  ),
  'up' => 
  array (
    0 => 'class.sessionhandler.php',
    1 => 'SessionHandler',
  ),
  'prev' => 
  array (
    0 => 'sessionhandler.create-sid.php',
    1 => 'SessionHandler::create_sid',
  ),
  'next' => 
  array (
    0 => 'sessionhandler.gc.php',
    1 => 'SessionHandler::gc',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ru',
    'path' => 'reference/session/sessionhandler/destroy.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="sessionhandler.destroy" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">SessionHandler::destroy</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.4.0, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">SessionHandler::destroy</span> &mdash; <span class="dc-title">Уничтожает сессию</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-sessionhandler.destroy-description">
  <h3 class="title">Описание</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>SessionHandler::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">
   Уничтожает сессию. Вызывается изнутри PHP посредством функции
   <span class="function"><a href="function.session-regenerate-id.php" class="function">session_regenerate_id()</a></span> (подразумевается, что параметр
   <code class="parameter">$destroy</code> установлен в <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>, функции
   <span class="function"><a href="function.session-destroy.php" class="function">session_destroy()</a></span> или когда вызов <span class="function"><a href="function.session-decode.php" class="function">session_decode()</a></span> неудачен.
  </p>
  <p class="para">
   Этот метод является обёрткой для внутреннего обработчика PHP, определённого в
   настройке ini-файла <a href="session.configuration.php#ini.session.save-handler" class="link">session.save_handler</a>,
   который устанавливается до обработчика вызовом <span class="function"><a href="function.session-set-save-handler.php" class="function">session_set_save_handler()</a></span>.
  </p>
  <p class="para">
   Если этот класс расширяется путём наследования, то вызов родительского метода
   <code class="parameter">destroy</code> выполнит код обёртки, а следовательно код внутреннего
   обработчика. Это позволяет методу быть переопределённым, перехваченным или
   отфильтрованным.
  </p>
  <p class="para">
   Для дополнительной информации смотрите руководство по функции <span class="function"><a href="sessionhandlerinterface.destroy.php" class="function">SessionHandlerInterface::destroy()</a></span>.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-sessionhandler.destroy-parameters">
  <h3 class="title">Список параметров</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">id</code></dt>
     <dd>
      <p class="para">
       Идентификатор уничтожаемой сессии.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-sessionhandler.destroy-returnvalues">
  <h3 class="title">Возвращаемые значения</h3>
  <p class="para">
   Возвращаемое значение
сессионного хранилища (обычно <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> в случае успешного выполнения
или <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>, если возникла ошибка). Это значение возвращается
обратно в PHP для внутренней обработки.
  </p>
 </div>



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