session_reset

(PHP 5 >= 5.6.0, PHP 7)

session_resetRe-initialize session array with original values

说明

session_reset ( void ) : bool

session_reset() reinitializes a session with original values stored in session storage. This function requires an active session and discards changes in $_SESSION.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

更新日志

版本 说明
7.2.0 The return type of this function is bool now. Formerly, it has been void.

参见

相关文章
php 数组 函数 gets the last key of an arrayphp cubrid mysql 兼容性函数 fetch a result row as an associative array a numeric array or bothphp cubrid mysql 兼容性函数 return an array with the lengths of the values of each field from the current rowphp cubrid mysql 兼容性函数 return a numerical array with the values of the current rowphp eio 函数 re initialize eiophp frontbase 函数 fetch a result row as an associative array a numeric array or bothphp imap 函数 this function returns an array of messages matching the given search criteriaphp pspell 函数 add the word to the wordlist in the current sessionphp session 函数 discard session array changes and finish sessionphp session pgsql 函数 returns number of errors and last error messagephp session 函数 re initialize session array with original valuesphp session 函数 write session data and end sessionphp ssh2 函数 initialize publickey subsystemphp statistic 函数 returns the absolute deviation of an array of valuesphp statistic 函数 calculates any one parameter of the non central t distribution give values for the othersphp statistic 函数 returns the harmonic mean of an array of valuesphp trader 函数 indexes of lowest and highest values over a specified periodphp yp/nis 函数 return an array containing the entire mapphp sessionhandler initialize sessionphp zookeeper return the timeout for this session only valid if the connections is currently connected ie. last watcher state is zoo connected state . this value may change after a server re connect
关注编程学问公众号