mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
no use of brackets with <function> tags; added <function> tags
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@98575 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
c2ad886f23
commit
a1bf2db431
1 changed files with 13 additions and 11 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.17 $ -->
|
||||
<!-- $Revision: 1.18 $ -->
|
||||
<reference id="ref.session">
|
||||
<title>Session handling functions</title>
|
||||
<titleabbrev>Sessions</titleabbrev>
|
||||
|
@ -145,9 +145,9 @@
|
|||
<varname>$HTTP_SESSION_VARS</varname> with PHP 4.0.6 or less) is
|
||||
recommended for improved security and code readablity. With
|
||||
<varname>$_SESSION</varname>, there is no need to use the
|
||||
<function>session_register()</function>,
|
||||
<function>session_unregister()</function>,
|
||||
<function>session_is_registered()</function> functions. Session variables
|
||||
<function>session_register</function>,
|
||||
<function>session_unregister</function>,
|
||||
<function>session_is_registered</function> functions. Session variables
|
||||
are accessible like any other variables.
|
||||
<example>
|
||||
<title>
|
||||
|
@ -204,8 +204,9 @@ session_unregister('count');
|
|||
variable. Upon a restart of a session, these variables will be restored
|
||||
to corresponding global variables. Since PHP must know which global
|
||||
variables are registered as session variables, users need to register
|
||||
variables with session_register() function. You can avoid this by simply
|
||||
setting entries in <varname>$_SESSION</varname>.
|
||||
variables with <function>session_register</function> function.
|
||||
You can avoid this by simply setting entries in
|
||||
<varname>$_SESSION</varname>.
|
||||
<caution>
|
||||
<para>
|
||||
If you are using
|
||||
|
@ -258,12 +259,13 @@ else {
|
|||
</para>
|
||||
<para>
|
||||
Additionally, if you register a new session variable by using
|
||||
<function>session_register()</function>, the entry in the global scope
|
||||
<function>session_register</function>, the entry in the global scope
|
||||
and the <varname>$_SESSION</varname> entry will not reference the same
|
||||
value until the next session start (this applies to PHP 4.2 and before
|
||||
only). I.e. a modification to the global variable will not be reflected
|
||||
by the <varname>$_SESSION</varname> entry. This is unlikely to matter in
|
||||
practice and has been corrected in PHP 4.3.
|
||||
value until the next <function>session_start</function> (this
|
||||
applies to PHP 4.2 and before only). I.e. a modification to the
|
||||
global variable will not be reflected by the
|
||||
<varname>$_SESSION</varname> entry. This is unlikely to matter
|
||||
in practice and has been corrected in PHP 4.3.
|
||||
</para>
|
||||
</section>
|
||||
|
||||
|
|
Loading…
Reference in a new issue