svn: /phpdoc/en/trunk/reference/session/ book.xml
| From: | Karma Dordrak | Date: | Fri, 24 Feb 2012 08:51:23 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/session/ book.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-9665@lists.php.net to get a copy of this message | ||
drak Fri, 24 Feb 2012 08:51:23 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=323467
Log:
[sessions] Removed white space.
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-02-24 08:50:39 UTC (rev 323466)
+++ phpdoc/en/trunk/reference/session/book.xml 2012-02-24 08:51:23 UTC (rev 323467)
@@ -20,10 +20,9 @@
user side or is propagated in the URL.
</para>
<para>
- The session support allows you to store data between requests in the
+ 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>
+ 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
<function>session_start</function> or implicitly through
<function>session_register</function>) whether a specific session
@@ -33,17 +32,19 @@
<caution>
<para>
If you turn on <link linkend="ini.session.auto-start">
- session.auto_start</link> then the only way to put objects
- into your sessions is to load its class definition using
- <link linkend="ini.auto-prepend-file">auto_prepend_file</link>
- in which you load the class definition else you will have to
- <function>serialize</function> your object
- and <function>unserialize</function> it
+ session.auto_start</link> then the only way to put objects
+ into your sessions is to load its class definition using
+ <link linkend="ini.auto-prepend-file">auto_prepend_file</link>
+ in which you load the class definition else you will have to
+ <function>serialize</function> your object
+ and <function>unserialize</function> it
afterwards.
</para>
</caution>
<para>
<varname>$_SESSION</varname> (and all registered variables) are serialized
+ interally by PHP using the serialization handler specified by the
+ <link
linkend="ini.session.serialize-handler">session.serialize_handler</link> ini
setting,
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.
@@ -58,17 +59,17 @@
<para>
Please note when working with sessions that a record of a session
is not created until a variable has been registered using the
- <function>session_register</function> function or by adding a new
- key to the <varname>$_SESSION</varname> superglobal array. This
- holds true regardless of if a session has been started using the
- <function>session_start</function> function.
+ <function>session_register</function> function or by adding a new
+ key to the <varname>$_SESSION</varname> superglobal array. This
+ holds true regardless of if a session has been started using the
+ <function>session_start</function> function.
</para>
</note>
<note>
<para>
- PHP 5.2.2 introduced an undocumented feature to store session files
- in "/tmp" even if <link
linkend="ini.open-basedir">open_basedir</link>
- was enabled and "/tmp" is not explicitly added to the allowed paths
+ PHP 5.2.2 introduced an undocumented feature to store session files
+ in "/tmp" even if <link
linkend="ini.open-basedir">open_basedir</link>
+ was enabled and "/tmp" is not explicitly added to the allowed paths
list. This feature has been removed from PHP as of PHP 5.3.0.
</para>
</note>