mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Fixed description for users enable register_globals
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@70268 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
5b06918113
commit
8ef1175295
1 changed files with 14 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.80 $ -->
|
||||
<!-- $Revision: 1.81 $ -->
|
||||
<reference id="ref.session">
|
||||
<title>Session handling functions</title>
|
||||
<titleabbrev>Sessions</titleabbrev>
|
||||
|
@ -147,11 +147,21 @@ unset($_SESSION['count']);
|
|||
<caution>
|
||||
<para>
|
||||
If you are using
|
||||
<varname>$HTTP_SESSION_VARS</varname>/<varname>$_SESSION</varname>,
|
||||
<varname>$HTTP_SESSION_VARS</varname>/<varname>$_SESSION</varname>
|
||||
and disable <link
|
||||
linkend="ini.register-globals"><literal>register_globals</literal></link>,
|
||||
do not use <function>session_register</function>,
|
||||
<function>session_is_registered</function> and
|
||||
<function>session_unregister</function> unless you know internal
|
||||
of session module.
|
||||
<function>session_unregister</function>.
|
||||
</para>
|
||||
<para>
|
||||
If you enable <link
|
||||
linkend="ini.register-globals"><literal>register_globals</literal></link>,
|
||||
<function>session_unregister</function> should be used since
|
||||
session variables are registered as global variables when
|
||||
session data is deserialized. Disabling <link
|
||||
linkend="ini.register-globals"><literal>register_globals</literal></link>
|
||||
is recommended for both security and performance reason.
|
||||
</para>
|
||||
</caution>
|
||||
<example>
|
||||
|
|
Loading…
Reference in a new issue