array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'function.session-reset.php', 1 => 'session_reset', ), 'up' => array ( 0 => 'ref.session.php', 1 => 'Session 函数', ), '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' => 'en', 'path' => 'reference/session/functions/session-reset.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 5 >= 5.6.0, PHP 7, PHP 8)
session_reset — Re-initialize session array with original values
session_reset() reinitializes a session with original values stored in session storage. This function requires an active session and discards changes in $_SESSION.
此函数没有参数。