From 64c91ae4ac0455f47e1ec0643e9a2c6de9c0d2ba Mon Sep 17 00:00:00 2001 From: Torben Wilson Date: Thu, 14 Feb 2002 20:27:09 +0000 Subject: [PATCH] Added $_SESSION. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@70259 c90b9560-bf6c-de11-be94-00142212c4b1 --- appendices/predefined.xml | 44 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/appendices/predefined.xml b/appendices/predefined.xml index f8cae6d1d8..1c2f4680c2 100644 --- a/appendices/predefined.xml +++ b/appendices/predefined.xml @@ -1,5 +1,5 @@ - + + + Session variables: <varname>$_SESSION</varname> + + + + Introduced in 4.1.0. In earlier versions, use + $HTTP_SESSION_VARS. + + + + + An associative array containing session variables available to + the current script. See the Session + functions documentation for more information on how this + is used. + + + + This is a 'superglobal', or automatic global, variable. This + simply means that it is available in all scopes throughout a + script. You don't need to do a global + $_SESSION; to access it within functions or methods, as + you do with $HTTP_SESSION_VARS. + + + + $HTTP_SESSION_VARS contains the same + information, but is not an autoglobal. + + + + If the register_globals directive + is set, then these variables will also be made available in the + global scope of the script; i.e., separate from the + $_SESSION and $HTTP_SESSION_VARS + arrays. For related information, see the security chapter titled + Using Register + Globals. These individual globals are not autoglobals. + + +