mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
example cleanup, mentioned by goba
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@99135 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
9067941231
commit
14d1740be9
1 changed files with 7 additions and 8 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.19 $ -->
|
||||
<!-- $Revision: 1.20 $ -->
|
||||
<reference id="ref.session">
|
||||
<title>Session handling functions</title>
|
||||
<titleabbrev>Sessions</titleabbrev>
|
||||
|
@ -326,13 +326,7 @@ else {
|
|||
}
|
||||
?>
|
||||
|
||||
Hello visitor, you have seen this page <?php echo $count; ?> times.<p>;
|
||||
|
||||
<?php
|
||||
# the <?php echo SID?> (<?=SID?> can be used if short tag is enabled)
|
||||
# is necessary to preserve the session id
|
||||
# in the case that the user has disabled cookies
|
||||
?>
|
||||
Hello visitor, you have seen this page <?php echo $count; ?> times.<p>
|
||||
|
||||
To continue, <A HREF="nextpage.php?<?php echo SID?>">click here</A>
|
||||
]]>
|
||||
|
@ -340,6 +334,11 @@ To continue, <A HREF="nextpage.php?<?php echo SID?>">click here</A>
|
|||
</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
|
||||
<link linkend="install.configure.enable-trans-sid">
|
||||
<literal>--enable-trans-sid</literal></link> was used to compile PHP.
|
||||
|
|
Loading…
Reference in a new issue