mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
Changes by Xyphoid of Freenode's ##PHP
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@321993 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
53a617808f
commit
68b0acad00
1 changed files with 7 additions and 9 deletions
|
@ -20,8 +20,8 @@
|
|||
user side or is propagated in the URL.
|
||||
</para>
|
||||
<para>
|
||||
The session support allows you to register arbitrary numbers of
|
||||
variables to be preserved across requests. When a visitor accesses
|
||||
The session support allows you to store data between requests in the
|
||||
<varname>$_SESSION</varname> superglobal array. When a visitor accesses
|
||||
your site, PHP will check automatically (if <link
|
||||
linkend="ini.session.auto-start">session.auto_start</link>
|
||||
is set to 1) or on your request (explicitly through
|
||||
|
@ -43,17 +43,15 @@
|
|||
</para>
|
||||
</caution>
|
||||
<para>
|
||||
All registered variables are serialized after the request
|
||||
finishes. Registered variables which are undefined are marked as
|
||||
being not defined. On subsequent accesses, these are not defined
|
||||
<varname>$_SESSION</varname> (and all registered variables) are serialized
|
||||
after the request finishes. Registered variables which are undefined are
|
||||
marked as being not defined. On subsequent accesses, these are not defined
|
||||
by the session module unless the user defines them later.
|
||||
</para>
|
||||
<warning>
|
||||
<para>
|
||||
Some types of data can not be serialized thus stored in sessions. It
|
||||
includes <type>resource</type> variables or objects with circular
|
||||
references (i.e. objects which passes a reference to itself to another
|
||||
object).
|
||||
Because session data is serialized, <type>resource</type> variables cannot
|
||||
be stored in the session.
|
||||
</para>
|
||||
</warning>
|
||||
<note>
|
||||
|
|
Loading…
Reference in a new issue