Hopelessly Lost Please help!! – $_SESSION
-
Boy I am really confused now.
I put in a simple counter
and it is clear that the session information is unstable.
I am lost as to why this is please help.
Here is the simple counter I used to test:
<?php</p>
<p>session_start();</p>
<p>if (empty($_SESSION[‘count’])) {
$_SESSION[‘count’] = 1;
} else {
$_SESSION[‘count’]++;
}
?></p>
<p><p>
Hello visitor, you have seen this page <?php echo $_SESSION[‘count’]; ?> times.
</p>
The number changes all around and then seems to start all over. Try it yourself:
Refresh the page several times and see what it does in the left sidebar.
Please Help I am lost.
Alfred
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Hopelessly Lost Please help!! – $_SESSION’ is closed to new replies.