SESSION
Posted: Mon Feb 03, 2003 6:21 pm
Hi Guys,
I need your help please.
Can you point to me the error in this code??
The counting supposed to increment by 1 everytime
I reload the page but it is not just working.
Thanks
God Bless You
I need your help please.
Can you point to me the error in this code??
The counting supposed to increment by 1 everytime
I reload the page but it is not just working.
Thanks
God Bless You
Code: Select all
<?
session_start();
session_register("SESSION");
if (!isset($SESSION)) {
$SESSION["count"] = 0;
echo "<li>Counter initialized, please reload this page to see it increment";
} else {
echo "<li>Waking up session $PHPSESSID";
$SESSION["count"]++;
}
echo "<li>The counter is now $SESSION[count] ";
?>