<?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 => 'de',
  ),
  'this' => 
  array (
    0 => 'function.session-reset.php',
    1 => 'session_reset',
    2 => 'Initialisiert das Session-Array mit seinen urspr&uuml;nglichen Werten neu',
  ),
  'up' => 
  array (
    0 => 'ref.session.php',
    1 => 'Session-Funktionen',
  ),
  'prev' => 
  array (
    0 => 'function.session-register-shutdown.php',
    1 => 'session_register_shutdown',
  ),
  'next' => 
  array (
    0 => 'function.session-save-path.php',
    1 => 'session_save_path',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'de',
    'path' => 'reference/session/functions/session-reset.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.session-reset" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">session_reset</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.6.0, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">session_reset</span> &mdash; <span class="dc-title">Initialisiert das Session-Array mit seinen ursprünglichen Werten neu</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.session-reset-description">
  <h3 class="title">Beschreibung</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>session_reset</strong></span>(): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">
   <span class="function"><strong>session_reset()</strong></span> initialisiert eine Session mit den
   ursprünglichen Werten, die im Session-Speicher abgelegt sind, neu. Diese
   Funktion erfordert eine aktive Session und verwirft die Änderungen in
   $_SESSION.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.session-reset-parameters">
  <h3 class="title">Parameter-Liste</h3>
  <p class="para">Diese Funktion besitzt keine Parameter.</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.session-reset-returnvalues">
  <h3 class="title">Rückgabewerte</h3>
  <p class="para">
   Gibt bei Erfolg <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> zurück. Bei einem Fehler wird <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> zurückgegeben.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.session-reset-changelog">
  <h3 class="title">Changelog</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Version</th>
      <th>Beschreibung</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td>7.2.0</td>
      <td>
       Der Rückgabetyp dieser Funktion ist nun <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span>; vorher war
       es <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-reset-seealso">
  <h3 class="title">Siehe auch</h3>
  <p class="para">
   <ul class="simplelist">
    <li><var class="varname"><a href="reserved.variables.session.php" class="classname">$_SESSION</a></var></li>
    <li>
     Die Konfigurationsanweisung
     <a href="session.configuration.php#ini.session.auto-start" class="link">session.auto_start</a>
    </li>
    <li><span class="function"><a href="function.session-start.php" class="function" rel="rdfs-seeAlso">session_start()</a> - Erzeugt eine neue Session oder setzt eine vorhandene fort</span></li>
    <li><span class="function"><a href="function.session-abort.php" class="function" rel="rdfs-seeAlso">session_abort()</a> - Verwirft &Auml;nderungen am Session-Array und beendet die Session</span></li>
    <li><span class="function"><a href="function.session-commit.php" class="function" rel="rdfs-seeAlso">session_commit()</a> - Alias von session_write_close</span></li>
   </ul>
  </p>
 </div>


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