session_unregister(3) php man page | unix.com

Man Page: session_unregister

Operating Environment: php

Section: 3

SESSION_UNREGISTER(3)							 1						     SESSION_UNREGISTER(3)

session_unregister - Unregister a global variable from the current session

SYNOPSIS
bool session_unregister (string $name)
DESCRIPTION
session_unregister(3) unregisters the global variable named $name from the current 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
Returns TRUE on success or FALSE on failure.
NOTES
Note If $_SESSION (or $HTTP_SESSION_VARS for PHP 4.0.6 or less) is used, use unset(3) to unregister a session variable. Do not unset(3)$_SESSION itself as this will disable the special function of the $_SESSION superglobal. Caution This function does not unset the corresponding global variable for $name, it only prevents the variable from being saved as part of the session. You must call unset(3) to remove the corresponding global variable. 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_UNREGISTER(3)
Related Man Pages
session_destroy(3) - php
isset(3) - php
import_request_variables(3) - php
session_register(3) - php
session_set_save_handler(3) - php
Similar Topics in the Unix Linux Community
setting global variable for all users
Set variable with variable
Change only the name of a variable
How to assign echo in variable
Unset environement variable