Session Problems: WIN2K SERVER, IIS 5.0, PHP 4.3
Issue: I have installed PHP 4.3 on a WIN2K Server machine with IIS 5.0. Normal PHP coding works fine, however, when I try to do seesions, I have the following scenario:
CODE START:
<?php
// initialize a session
session_start();
// register a session variable
session_register('counter');
// increment and display the value of the counter
$SESSION['counter']++;
echo("You have visited this page ".$SESSION['counter']." times! Don't you have anything
else to do, you bum?!");
?>
CODE END:
I have tried it with register_globals On and Off and I still get the following result, no matter how many times I refresh.
[
You have visited this page 1 times! Don't you have anything else to do, you bum?!
]
It does create a session with the correct variable information in it, however, it creates a new session file every time I refresh.
Any ideas?
Thanks.