Sophie

Sophie

distrib > Mageia > 4 > i586 > by-pkgid > f800694edefe91adea2624f711a41a2d > files > 11304

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>Close the session</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="class.sessionhandler.html">SessionHandler</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="sessionhandler.destroy.html">SessionHandler::destroy</a></div>
 <div class="up"><a href="class.sessionhandler.html">SessionHandler</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="sessionhandler.close" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">SessionHandler::close</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.4.0)</p><p class="refpurpose"><span class="refname">SessionHandler::close</span> &mdash; <span class="dc-title">Close the session</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-sessionhandler.close-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">bool</span> <span class="methodname"><strong>SessionHandler::close</strong></span>
    ( <span class="methodparam">void</span>
   )</div>

  <p class="para rdfs-comment">
   Closes the current session. This method is automatically executed internally by PHP when
   closing the session, or explicitly via  <span class="function"><a href="function.session-write-close.html" class="function">session_write_close()</a></span> (which
   first calls the  <span class="function"><a href="sessionhandler.write.html" class="function">SessionHandler::write()</a></span>).
  </p>
  <p class="para">
   This method wraps the internal PHP save handler defined in the
   <a href="session.configuration.html#ini.session.save-handler" class="link">session.save_handler</a> ini setting that was set
   before this handler was activated by  <span class="function"><a href="function.session-set-save-handler.html" class="function">session_set_save_handler()</a></span>.
  </p>
  <p class="para">
   If this class is extended by inheritiance, calling the parent <em><code class="parameter">close</code></em> method will invoke the
   wrapper for this method and therefor invoke the associated internal callback.  This allows the method to be
   overidden and or intercepted.
  </p>
  <p class="para">
   For more information on what this method is expected to do, please refer to the documentation at
    <span class="function"><a href="sessionhandlerinterface.close.html" class="function">SessionHandlerInterface::close()</a></span>.
  </p>

 </div>


 <div class="refsect1 parameters" id="refsect1-sessionhandler.close-parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">This function has no parameters.</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-sessionhandler.close-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   The return value (usually <strong><code>TRUE</code></strong> on success, <strong><code>FALSE</code></strong> on failure). Note this value is returned internally to PHP for processing.
  </p>
 </div>


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