I'm facing a weird problem here.. (session)
Perhaps the server settings or php settings.
Here's the code:
if (empty($_SESSION['count'])) {
$_SESSION['count'] = 1;
} else {
$_SESSION['count']++;
}
?>
<p>
Hello visitor, you have seen this page <?php echo $_SESSION['count']; ?> times.
</p>
Everytime i hit refresh, the counter should increase..
but for some reason it doesn't and i dont know why.
Any idea / suggestion / solution for me?
Thank you