From d731fb0b32ff1f3d04e730f9d88892245cdcb33f Mon Sep 17 00:00:00 2001 From: Philip Olson Date: Sat, 18 Jan 2003 05:52:05 +0000 Subject: [PATCH] You must call session_start() before using $_SESSION. This closes bug #19068 git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@112345 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/session/reference.xml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/reference/session/reference.xml b/reference/session/reference.xml index 323be30ac1..5cff6f98b5 100644 --- a/reference/session/reference.xml +++ b/reference/session/reference.xml @@ -1,5 +1,5 @@ - + Session handling functions Sessions @@ -118,7 +118,7 @@ &reftitle.examples; - As of PHP 4.1.0, $_SESSION is available as + As of PHP 4.1.0, $_SESSION is available as a global variable just like $_POST, $_GET, $_REQUEST and so on. Unlike $HTTP_SESSION_VARS, @@ -129,7 +129,9 @@ documentation has been changed to use $_SESSION everywhere. You can substitute $HTTP_SESSION_VARS for - $_SESSION, if you prefer the former. + $_SESSION, if you prefer the former. Also note + that you must start your session using session_start + before use of $_SESSION becomes available. The keys in the $_SESSION associative