Hi,
The code below is meant to test if the PHP session manager on my machine works. The $SESSION[count] variable is supposed to increment by 1 when you refresh. However, when I do this the variable stays at 0 (zero). Any suggestions? Thanks.
<?
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] ";
?>