<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.session.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'uk',
  ),
  'this' => 
  array (
    0 => 'function.session-write-close.php',
    1 => 'session_write_close',
    2 => 'Write session data and end session',
  ),
  'up' => 
  array (
    0 => 'ref.session.php',
    1 => 'Session Функції',
  ),
  'prev' => 
  array (
    0 => 'function.session-unset.php',
    1 => 'session_unset',
  ),
  'next' => 
  array (
    0 => 'class.sessionhandler.php',
    1 => 'SessionHandler',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/session/functions/session-write-close.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.session-write-close" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">session_write_close</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.0.4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">session_write_close</span> &mdash; <span class="dc-title">Write session data and end session</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.session-write-close-description">
  <h3 class="title">Опис</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>session_write_close</strong></span>(): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">
   End the current session and store session data.
  </p>
  <p class="para">
   Session data is usually stored after your script terminated without the
   need to call <span class="function"><strong>session_write_close()</strong></span>, but as session data
   is locked to prevent concurrent writes only one script may operate on a
   session at any time. When using framesets together with sessions you will
   experience the frames loading one by one due to this locking. You can
   reduce the time needed to load all the frames by ending the session as
   soon as all changes to session variables are done.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.session-write-close-parameters">
  <h3 class="title">Параметри</h3>
  <p class="para">У цієї функції немає
параметрів.</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.session-write-close-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> в разі помилки.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.session-write-close-changelog">
  <h3 class="title">Журнал змін</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Версія</th>
      <th>Опис</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td>7.2.0</td>
      <td>
       The return type of this function is <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span> now.
       Formerly, it has been <span class="type"><span class="type"><a href="language.types.void.php" class="type void">void</a></span></span>.
      </td>
     </tr>

    </tbody>
   
  </table>

 </div>


 <div class="refsect1 seealso" id="refsect1-function.session-write-close-seealso">
  <h3 class="title">Прогляньте також</h3>
  <p class="para">
   <ul class="simplelist">
    <li>
     The <span class="function"><a href="function.session-register-shutdown.php" class="function" rel="rdfs-seeAlso">session_register_shutdown()</a> - Session shutdown function</span>
    </li>
   </ul>
  </p>
 </div>


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