【发布时间】:2015-12-06 22:29:08
【问题描述】:
用 session_unset 和 unset($_SESSION) 取消设置会话变量有什么区别?
这不是一个重复的问题,因为所有其他问题都在谈论 session_unset 和 session_destroy 之间的区别!
【问题讨论】:
-
PHP.net 和/或 Google 上的手册是怎么说的?
-
他们都在谈论 session_unset 和 session_destroy !
-
Caution Do NOT unset the whole $_SESSION with unset($_SESSION) as this will disable the registering of session variables through the $_SESSION superglobal.
标签: php variables session unset