<?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 => 'uk',
  ),
  'this' => 
  array (
    0 => 'sessionhandler.open.php',
    1 => 'SessionHandler::open',
    2 => 'Initialize session',
  ),
  'up' => 
  array (
    0 => 'class.sessionhandler.php',
    1 => 'SessionHandler',
  ),
  'prev' => 
  array (
    0 => 'sessionhandler.gc.php',
    1 => 'SessionHandler::gc',
  ),
  'next' => 
  array (
    0 => 'sessionhandler.read.php',
    1 => 'SessionHandler::read',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/session/sessionhandler/open.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="sessionhandler.open" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">SessionHandler::open</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.4.0, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">SessionHandler::open</span> &mdash; <span class="dc-title">Initialize session</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-sessionhandler.open-description">
  <h3 class="title">Опис</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>SessionHandler::open</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$path</code></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$name</code></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">
   Create new session, or re-initialize existing session. Called internally by PHP when
   a session starts either automatically or when <span class="function"><a href="function.session-start.php" class="function">session_start()</a></span> is invoked.
  </p>
  <p class="para">
   This method wraps the internal PHP save handler defined in the
   <a href="session.configuration.php#ini.session.save-handler" class="link">session.save_handler</a> ini setting that was set
   before this handler was set by <span class="function"><a href="function.session-set-save-handler.php" class="function">session_set_save_handler()</a></span>.
  </p>
  <p class="para">
   If this class is extended by inheritance, calling the parent <code class="parameter">open</code> method will invoke the
   wrapper for this method and therefore invoke the associated internal callback.  This allows this method to be
   overridden and or intercepted and filtered.
  </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.open.php" class="function">SessionHandlerInterface::open()</a></span>.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-sessionhandler.open-parameters">
  <h3 class="title">Параметри</h3>
  <dl>
   
    <dt><code class="parameter">path</code></dt>
    <dd>
     <p class="para">
      The path where to store/retrieve the session.
     </p>
    </dd>
   
   
    <dt><code class="parameter">name</code></dt>
    <dd>
     <p class="para">
      The session name.
     </p>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-sessionhandler.open-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 class="refsect1 seealso" id="refsect1-sessionhandler.open-seealso">
  <h3 class="title">Прогляньте також</h3>
  <p class="para">
   <ul class="simplelist">
    <li>
     The <a href="session.configuration.php#ini.session.auto-start" class="link">session.auto-start</a>
     configuration directive.
    </li>
   </ul>
  </p>
 </div>



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