mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
Fix bug #23001
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@122151 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
7cc14952bc
commit
1f146b0a2a
1 changed files with 7 additions and 8 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.32 $ -->
|
||||
<!-- $Revision: 1.33 $ -->
|
||||
<reference id="ref.session">
|
||||
<title>Session handling functions</title>
|
||||
<titleabbrev>Sessions</titleabbrev>
|
||||
|
@ -355,18 +355,17 @@ else {
|
|||
|
||||
Hello visitor, you have seen this page <?php echo $count; ?> times.<p>
|
||||
|
||||
To continue, <A HREF="nextpage.php?<?php echo SID?>">click here</A>
|
||||
To continue, <A HREF="nextpage.php?<?php echo strip_tags (SID)?>">click here</A>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
The <literal><?php echo SID?></literal>
|
||||
(<literal><?=SID?></literal> can be used if
|
||||
<link linkend="ini.short-open-tag">short_open_tag</link> is enabled) is
|
||||
necessary to preserve the session id in the case that the user has
|
||||
disabled cookies.
|
||||
The <literal><?=SID?></literal> is not necessary, if
|
||||
The <function>strip_tags</function> is used when printing the SID
|
||||
in order to prevent XSS related attacks.
|
||||
</para>
|
||||
<para>
|
||||
Printing the SID, like shown above, is not necessary if
|
||||
<link linkend="install.configure.enable-trans-sid">
|
||||
<literal>--enable-trans-sid</literal></link> was used to compile PHP.
|
||||
</para>
|
||||
|
|
Loading…
Reference in a new issue