uTools-Manuals/docs/php/session_reset.html
2019-04-08 23:22:26 +08:00

83 lines
3.2 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!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>Re-initialize session array with original values</title>
</head>
<body class="docs"><div id="layout">
<div id="layout-content"><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)</p><p class="refpurpose"><span class="refname">session_reset</span> &mdash; <span class="dc-title">Re-initialize session array with original values</span></p>
</div>
<div class="refsect1 description" id="refsect1-function.session-reset-description">
<h3 class="title">说明</h3>
<div class="methodsynopsis dc-description">
<span class="methodname"><strong>session_reset</strong></span>
( <span class="methodparam">void</span>
) : <span class="type">bool</span></div>
<p class="para rdfs-comment">
<span class="function"><strong>session_reset()</strong></span> reinitializes a session with
original values stored in session storage. This function requires an active session and
discards changes in $_SESSION.
</p>
</div>
<div class="refsect1 returnvalues" id="refsect1-function.session-reset-returnvalues">
<h3 class="title">返回值</h3>
<p class="para">
成功时返回 <strong><code>TRUE</code></strong> 或者在失败时返回 <strong><code>FALSE</code></strong>
</p>
</div>
<div class="refsect1 changelog" id="refsect1-function.session-reset-changelog">
<h3 class="title">更新日志</h3>
<table class="doctable informaltable">
<thead>
<tr>
<th>版本</th>
<th>说明</th>
</tr>
</thead>
<tbody class="tbody">
<tr>
<td>7.2.0</td>
<td>
The return type of this function is <span class="type"><a href="language.types.boolean.html" class="type bool">bool</a></span> now.
Formerly, it has been <span class="type"><span class="type void">void</span></span>.
</td>
</tr>
</tbody>
</table>
</div>
<div class="refsect1 seealso" id="refsect1-function.session-reset-seealso">
<h3 class="title">参见</h3>
<p class="para">
<ul class="simplelist">
<li class="member"><var class="varname"><var class="varname"><a href="reserved.variables.session.html" class="classname">$_SESSION</a></var></var></li>
<li class="member">
The <a href="session.configuration.html#ini.session.auto-start" class="link">session.auto_start</a>
configuration directive
</li>
<li class="member"><span class="function"><a href="session_start.html" class="function" rel="rdfs-seeAlso">session_start()</a> - 启动新会话或者重用现有会话</span></li>
<li class="member"><span class="function"><a href="session_abort.html" class="function" rel="rdfs-seeAlso">session_abort()</a> - Discard session array changes and finish session</span></li>
<li class="member"><span class="function"><a href="session_commit.html" class="function" rel="rdfs-seeAlso">session_commit()</a> - session_write_close 的别名</span></li>
</ul>
</p>
</div>
</div></div></div></body></html>