Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

session_is_registered(3) [php man page]

SESSION_IS_REGISTERED(3)						 1						  SESSION_IS_REGISTERED(3)

session_is_registered - Find out whether a global variable is registered in a session

SYNOPSIS
bool session_is_registered (string $name) DESCRIPTION
Finds out whether a global variable is registered in a session. Warning This function has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 5.4.0. PARAMETERS
o $name - The variable name. RETURN VALUES
session_is_registered(3) returns TRUE if there is a global variable with the name $name registered in the current session, FALSE otherwise. NOTES
Note If $_SESSION (or $HTTP_SESSION_VARS for PHP 4.0.6 or less) is used, use isset(3) to check a variable is registered in $_SESSION. Caution If you are using $_SESSION (or $HTTP_SESSION_VARS), do not use session_register(3), session_is_registered(3) and session_unregis- ter(3). PHP Documentation Group SESSION_IS_REGISTERED(3)

Check Out this Related Man Page

SESSION_REGENERATE_ID(3)						 1						  SESSION_REGENERATE_ID(3)

session_regenerate_id - Update the current session id with a newly generated one

SYNOPSIS
bool session_regenerate_id ([bool $delete_old_session = false]) DESCRIPTION
session_regenerate_id(3) will replace the current session id with a new one, and keep the current session information. PARAMETERS
o $delete_old_session - Whether to delete the old associated session file or not. RETURN VALUES
Returns TRUE on success or FALSE on failure. CHANGELOG
+--------+---------------------------------------------------+ |Version | | | | | | | Description | | | | +--------+---------------------------------------------------+ | 4.3.3 | | | | | | | Since then, if session cookies are enabled, use | | | of session_regenerate_id(3) will also submit a | | | new session cookie with the new session id. | | | | | 5.1.0 | | | | | | | Added the $delete_old_session parameter. | | | | +--------+---------------------------------------------------+ EXAMPLES
Example #1 A session_regenerate_id(3) example <?php session_start(); $old_sessionid = session_id(); session_regenerate_id(); $new_sessionid = session_id(); echo "Old Session: $old_sessionid<br />"; echo "New Session: $new_sessionid<br />"; print_r($_SESSION); ?> SEE ALSO
session_id(3), session_start(3), session_name(3). PHP Documentation Group SESSION_REGENERATE_ID(3)
Man Page