mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
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
This commit is contained in:
parent
dbd8a08969
commit
d731fb0b32
1 changed files with 5 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.27 $ -->
|
||||
<!-- $Revision: 1.28 $ -->
|
||||
<reference id="ref.session">
|
||||
<title>Session handling functions</title>
|
||||
<titleabbrev>Sessions</titleabbrev>
|
||||
|
@ -118,7 +118,7 @@
|
|||
&reftitle.examples;
|
||||
<note>
|
||||
<para>
|
||||
As of PHP 4.1.0, <varname>$_SESSION</varname> is available as
|
||||
As of PHP 4.1.0, <varname>$_SESSION</varname> is available as a
|
||||
global variable just like <varname>$_POST</varname>,
|
||||
<varname>$_GET</varname>, <varname>$_REQUEST</varname> and so on.
|
||||
Unlike <varname>$HTTP_SESSION_VARS</varname>,
|
||||
|
@ -129,7 +129,9 @@
|
|||
documentation has been changed to use
|
||||
<varname>$_SESSION</varname> everywhere. You can substitute
|
||||
<varname>$HTTP_SESSION_VARS</varname> for
|
||||
<varname>$_SESSION</varname>, if you prefer the former.
|
||||
<varname>$_SESSION</varname>, if you prefer the former. Also note
|
||||
that you must start your session using <function>session_start</function>
|
||||
before use of <varname>$_SESSION</varname> becomes available.
|
||||
</para>
|
||||
<para>
|
||||
The keys in the <varname>$_SESSION</varname> associative
|
||||
|
|
Loading…
Reference in a new issue