Code: Select all
<?php
session_start();
if (!isset($_SESSIONї'count']))
{
$_SESSIONї'count'] = 0;
}
else
{
$_SESSIONї'count']++;
}
echo $_SESSIONї'count'];
?>$count is always 0. 0 is always echoed.
I am currently running win2k, php 4.1, apache 1.3.24
I have also tried $HTTP_SESSION_VARS on PHP 4.0.6 and that still did not work.
It does however, work fine if I just use globals (session_register("count");) etc etc.
I can't figure this out. Its beyond me. Perhaps I've missed something simple. ANyone have any ideas for me?
Thanks guys