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:
Friedhelm Betz 2002-10-10 12:00:02 +00:00
parent 9067941231
commit 14d1740be9

View file

@ -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>&lt;?php echo SID?&gt;</literal>
(<literal>&lt;?=SID?&gt;</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>&lt;?=SID?&gt;</literal> is not necessary, if
<link linkend="install.configure.enable-trans-sid">
<literal>--enable-trans-sid</literal></link> was used to compile PHP.