after fixing the my original problems with sessions ( setting "session.save_path" from "/tmp" > "c:\php\sessiondata" )
i am no longer reciving any warnings!
But now my the problem is that my sessions wont persist. if i return the following code:
session_start();
//check if $_SESSION['counter'] exists to avoid overwriting
if(empty($_SESSION['counter']))
{
$_SESSION['counter'] = 1;
}
else
{
$_SESSION['counter']++;
}
echo $_SESSION['counter'];
echo strip_tags(SID);
and i refresh the page. I always get :
"1" "PHPSESSID=0137f52ad1426df6ad6b2905517fd732" - the PHPSESSID changes each time but the $counter is always 1????
the above code works fine when i upload it to my www host its just my local machine i am running w2k
register globals = off
PHP Version 4.3.4
session.save_path = "c:\php" which is a shared folder!
am i missing something?????