svn: /phpdoc/en/trunk/reference/session/ book.xml
| From: | Joey Smith | Date: | Tue, 10 Jan 2012 05:33:14 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/session/ book.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-9376@lists.php.net to get a copy of this message | ||
joey Tue, 10 Jan 2012 05:33:14 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=321993
Log:
Changes by Xyphoid of Freenode's ##PHP
Changed paths:
U phpdoc/en/trunk/reference/session/book.xml
Modified: phpdoc/en/trunk/reference/session/book.xml
===================================================================
--- phpdoc/en/trunk/reference/session/book.xml 2012-01-10 05:26:20 UTC (rev 321992)
+++ phpdoc/en/trunk/reference/session/book.xml 2012-01-10 05:33:14 UTC (rev 321993)
@@ -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>