Re: Question about sessions
| From: | Lord Loh. | Date: | Sat, 03 Aug 2002 06:17:49 +0000 |
| Subject: | Re: Question about sessions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-110917@lists.php.net to get a copy of this message | ||
From the php docs(XC. Session handling functions)
======================================
<?php
session_register ("count");
$count++;
?>
Hello visitor, you have seen this page <?php echo $count; ?> times.<p>;
<?php
# the <?=SID?> is necessary to preserve the session id
# in the case that the user has disabled cookies
?>
To continue, <A HREF="nextpage.php?<?=SID?>">click here</A>
===============================================