session_is_registered

(PHP 4, PHP 5 < 5.4.0)

session_is_registeredFind out whether a global variable is registered in a session

Descrierea

session_is_registered ( string $name ) : bool

Finds out whether a global variable is registered in a session.

Avertizare

Această facilitate a fost ÎNVECHITĂ începând cu PHP 5.3.0 și ELIMINATĂ începând cu PHP 5.4.0.

Parametri

name

The variable name.

Valorile întoarse

session_is_registered() returns TRUE if there is a global variable with the name name registered in the current session, FALSE otherwise.

Note

Notă:

If $_SESSION is used, use isset() to check a variable is registered in $_SESSION.

Precauţie

If you are using $_SESSION (or $HTTP_SESSION_VARS), do not use session_register(), session_is_registered() and session_unregister().