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 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 ibm db2 函数 returns an array indexed by column position representing a row in a result setphp eio 函数 re initialize eiophp enchant 函数 will return a list of values if any of those pre conditions are not metphp zlib 函数 initialize an incremental inflate contextphp ldap 函数 add attribute values to current attributesphp newt 函数 initialize newtphp session 函数 discard session array changes and finish sessionphp session 函数 获取/设置当前会话 idphp session 函数 re initialize session array with original valuesphp session 函数 设置用户自定义会话存储函数php snmp 函数 return all values that are enums with their enum value instead of the raw integerphp socket 函数 creates a pair of indistinguishable sockets and stores them in an arrayphp statistic 函数 returns the absolute deviation of an array of valuesphp statistic 函数 calculates any one parameter of the laplace distribution given values for the othersphp statistic 函数 returns the harmonic mean of an array of valuesphp com 函数 multiplies the values of the two variantsphp yaz 函数 specifies the databases within a sessionphp sdo das relational 函数 executes an sql query passed as a prepared statement with a list of values to substitute for placeholders and return the results as a normalised data graph
关注编程学问公众号