(PHP 4, PHP 5)
session_is_registered — Find out whether a global variable is registered in a session
Finds out whether a global variable is registered in a session.
自 PHP 5.3.0 起,已经废弃此函数。强烈建议不要应用此函数 。
The variable name.
session_is_registered() returns TRUE if there is a global variable with the name name registered in the current session, FALSE otherwise.
Note:
If $_SESSION (or $HTTP_SESSION_VARS for PHP 4.0.6 or less) is used, use isset() to check a variable is registered in $_SESSION.
If you are using $_SESSION (or $HTTP_SESSION_VARS), do not use session_register(), session_is_registered() and session_unregister().