svn: /phpdoc/en/trunk/reference/session/ examples.xml functions/session-set-save-handler.xml sessionhandlerinterface/read.xml
sessionhandlerinterface/write.xml
| From: | Karma Dordrak | Date: | Fri, 24 Feb 2012 08:50:39 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/session/ examples.xml functions/session-set-save-handler.xml sessionhandlerinterface/read.xml sessionhandlerinterface/write.xml |
||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-9664@lists.php.net to get a copy of this message | ||
drak Fri, 24 Feb 2012 08:50:39 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=323466
Log:
[sessions] Add variable and parameter markup.
Changed paths:
U phpdoc/en/trunk/reference/session/examples.xml
U phpdoc/en/trunk/reference/session/functions/session-set-save-handler.xml
U phpdoc/en/trunk/reference/session/sessionhandlerinterface/read.xml
U phpdoc/en/trunk/reference/session/sessionhandlerinterface/write.xml
Modified: phpdoc/en/trunk/reference/session/examples.xml
===================================================================
--- phpdoc/en/trunk/reference/session/examples.xml 2012-02-24 08:41:36 UTC (rev 323465)
+++ phpdoc/en/trunk/reference/session/examples.xml 2012-02-24 08:50:39 UTC (rev 323466)
@@ -245,37 +245,37 @@
</para>
<para>
The callbacks specified in <function>session_set_save_handler</function> are methods
- called by PHP during the life-cycle of a session: open, read, write and close and for
+ called by PHP during the life-cycle of a session: <parameter>open</parameter>,
<parameter>read</parameter>, <parameter>write</parameter> and
<parameter>close</parameter> and for
the houskeping tasks of deleting stored sessions and periodic garbage collection.
</para>
<para>
Therefor, PHP always requires session save handlers. The default is usually the
internal 'files' save handler (and as of PHP 5.4, the SessionHandler class). A custom
save handler
can be set using <function>session_set_save_handler</function>. Alternative
internal save handlers
- are also be provided by PHP extensions, such as sqlite, memcache and memcached and can be set
with
- <link linkend="ini.session.save-handler">session.save_handler</link>.
+ are also be provided by PHP extensions, such as <parameter>sqlite</parameter>,
<parameter>memcache</parameter>
+ and <parameter>memcached</parameter> and can be set with <link
linkend="ini.session.save-handler">session.save_handler</link>.
</para>
<para>
- When the session starts, PHP will internally call the open() handler followed by the read()
handler
+ When the session starts, PHP will internally call the <parameter>open<parameter>
handler followed by the <parameter>read</parameter> callback
which should return an encoded string extactly as it was originally passed for storage.
- Once the read() handler returns the encoded string, PHP will decode it and then populate
- the resulting array into the $_SESSION superglobal.
+ Once the <parameter>read</parameter> callback returns the encoded string, PHP will
decode it and then populate
+ the resulting array into the <varname>$_SESSION</varname> superglobal.
</para>
<para>
When PHP shuts down (or when <function>session_write_close</function> is called),
- PHP will internally encode the $_SESSION superglobal and pass this
- along with the session ID to the the write() callback.
- After write() PHP will internally invoke the close() callback handler.
+ PHP will internally encode the <varname>$_SESSION</varname> superglobal and pass
this
+ along with the session ID to the the <parameter>write</parameter> callback.
+ After the <parameter>write<parameter> callback has finished, PHP will internally
invoke the <parameter>close</parameter> callback handler.
</para>
<para>
When a session is specifically destroyed, PHP will call the
destroy() handler with the session ID.
</para>
<para>
- PHP will call gc() from time to time to expire any session
- records according to the set max lifetime of a session. This routine
- should delete all records from persistent storage which were last
- accessed longer than the $lifetime.
+ PHP will call the <parameter>gc</parameter> callback from time to time to
+ expire any session records according to the set max lifetime of a session.
+ This routine should delete all records from persistent storage which were
+ last accessed longer than the <parameter>$lifetime<parameter>.
</para>
</section>
</appendix>
Modified: phpdoc/en/trunk/reference/session/functions/session-set-save-handler.xml
===================================================================
--- phpdoc/en/trunk/reference/session/functions/session-set-save-handler.xml 2012-02-24 08:41:36 UTC
(rev 323465)
+++ phpdoc/en/trunk/reference/session/functions/session-set-save-handler.xml 2012-02-24 08:50:39 UTC
(rev 323466)
@@ -102,7 +102,7 @@
<para>
The value this callback returns must be in exactly the same serialized format that was
originally
passed for storage to the <parameter>write</parameter> callback. The value
returned will be
- unserialized automatically by PHP and used to populate the $_SESSION superglobal.
+ unserialized automatically by PHP and used to populate the
<varname>$_SESSION</varname> superglobal.
While the data looks similar to <function>serialize</function> please note it is
a different format
which is speficied in the <link
linkend="ini.session.serialize-handler">session.serialize_handler</link> ini
setting.
</para>
@@ -113,7 +113,7 @@
<listitem>
<para>
The <parameter>write</parameter> callback is called when the session needs to be
saved and closed. This
- callback receives the current session ID a serialized version the $_SESSION superglobal.
The serialization
+ callback receives the current session ID a serialized version the
<varname>$_SESSION</varname> superglobal. The serialization
method used internally by PHP is specified in the <link
linkend="ini.session.serialize-handler">session.serialize_handler</link> ini
setting.
</para>
<para>
Modified: phpdoc/en/trunk/reference/session/sessionhandlerinterface/read.xml
===================================================================
--- phpdoc/en/trunk/reference/session/sessionhandlerinterface/read.xml 2012-02-24 08:41:36 UTC (rev
323465)
+++ phpdoc/en/trunk/reference/session/sessionhandlerinterface/read.xml 2012-02-24 08:50:39 UTC (rev
323466)
@@ -28,7 +28,7 @@
<para>
The data returned by this method will be decoded internally by PHP using the
unserialization method specified in <link
linkend="ini.session.serialize-handler">session.serialize_handler</link>.
- The resultig data will be used to populate the $_SESSION superglobal.
+ The resultig data will be used to populate the <varname>$_SESSION</varname>
superglobal.
</para>
<para>
Note that the serialization scheme is not the same as
<function>unserialize</function>
Modified: phpdoc/en/trunk/reference/session/sessionhandlerinterface/write.xml
===================================================================
--- phpdoc/en/trunk/reference/session/sessionhandlerinterface/write.xml 2012-02-24 08:41:36 UTC (rev
323465)
+++ phpdoc/en/trunk/reference/session/sessionhandlerinterface/write.xml 2012-02-24 08:50:39 UTC (rev
323466)
@@ -21,7 +21,7 @@
</para>
<para>
PHP will call this method when the session is ready to be saved and closed. It encodes
- the session data from the $_SESSION superglobal to a serialized string and passes this
+ the session data from the <varname>$_SESSION</varname> superglobal to a serialized
string and passes this
along with the session ID to this method for storage. The serialization method used
is specified in the <link
linkend="ini.session.serialize-handler">session.serialize_handler</link> setting.
</para>
@@ -46,7 +46,7 @@
<term><parameter>session_data</parameter></term>
<listitem>
<para>
- The encoded session data. This data is the result of the PHP internally encoding the
$_SESSION superglobal to a serialized
+ The encoded session data. This data is the result of the PHP internally encoding the
<varname>$_SESSION</varname> superglobal to a serialized
string and passing it as this parameter. Please note sessions use an alternative
serialization method.
</para>
</listitem>