<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.sessionhandlerinterface.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'fr',
  ),
  'this' => 
  array (
    0 => 'sessionhandlerinterface.open.php',
    1 => 'SessionHandlerInterface::open',
    2 => 'Initialise la session',
  ),
  'up' => 
  array (
    0 => 'class.sessionhandlerinterface.php',
    1 => 'SessionHandlerInterface',
  ),
  'prev' => 
  array (
    0 => 'sessionhandlerinterface.gc.php',
    1 => 'SessionHandlerInterface::gc',
  ),
  'next' => 
  array (
    0 => 'sessionhandlerinterface.read.php',
    1 => 'SessionHandlerInterface::read',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'fr',
    'path' => 'reference/session/sessionhandlerinterface/open.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

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

 </div>

 <div class="refsect1 description" id="refsect1-sessionhandlerinterface.open-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>SessionHandlerInterface::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">
   Ré-initialise une session existante ou en crée une nouvelle. Appelé lorsqu&#039;une session est
   démarrée ou lors de l&#039;appel à
   <span class="function"><a href="function.session-start.php" class="function">session_start()</a></span>.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-sessionhandlerinterface.open-parameters">
  <h3 class="title">Liste de paramètres</h3>
  <dl>
   
    <dt><code class="parameter">path</code></dt>
    <dd>
     <p class="para">
      Le chemin où la session est stockée/récupérée.
     </p>
    </dd>
   
   
    <dt><code class="parameter">name</code></dt>
    <dd>
     <p class="para">
      Le nom de la session.
     </p>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-sessionhandlerinterface.open-returnvalues">
  <h3 class="title">Valeurs de retour</h3>
  <p class="para">
   La valeur retournée (habituellement <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> en cas de succès, <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> si une erreur survient).
        Notez que cette valeur est retournée en interne à PHP pour analyse.
  </p>
 </div>

 
 <div class="refsect1 seealso" id="refsect1-sessionhandlerinterface.open-seealso">
  <h3 class="title">Voir aussi</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.session-name.php" class="function" rel="rdfs-seeAlso">session_name()</a> - Lit et/ou modifie le nom de la session</span></li>
    <li>
     La directive de configuration
     <a href="session.configuration.php#ini.session.auto-start" class="link">session.auto-start</a>
    </li>
   </ul>
  </p>
 </div>


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