Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > f800694edefe91adea2624f711a41a2d > files > 5736

php-manual-en-5.5.7-1.mga4.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Write session data and end session</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.session-unset.html">session_unset</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="class.sessionhandler.html">SessionHandler</a></div>
 <div class="up"><a href="ref.session.html">Session Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><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)</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">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="type"><span class="type void">void</span></span> <span class="methodname"><strong>session_write_close</strong></span>
    ( <span class="methodparam">void</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 returnvalues" id="refsect1-function.session-write-close-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   No value is returned.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.session-write-close-seealso">
  <h3 class="title">See Also</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member">
     The  <span class="function"><a href="function.session-register-shutdown.html" class="function" rel="rdfs-seeAlso">session_register_shutdown()</a> - Session shutdown function</span>
    </li>
   </ul>
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.session-unset.html">session_unset</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="class.sessionhandler.html">SessionHandler</a></div>
 <div class="up"><a href="ref.session.html">Session Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>