I've seen a lot of posts about sessions not working under Windows here and elsewhere, but no solutions that seem to apply to my situation. Can anyone help?
I'm using Apache 1.3.24 and PHP 4.1.3-dev under Win98. The session file is created in c:\Temp correctly (there are no permissions set on the directory), but it is of zero length.
my php.ini settings:
session.save_handler= files
session.save_path = c:Temp
session.use_cookies=0 (also tried setting it to 1)
session.name = PHPSESSID
session.auto_start=0
session.cookie_ath = /
session.cookie_domain=
session.serialize_handler = php
session.gc_probability = 5
sessoin.gc_maxlifetime=1440
session.referer_check=
session.entropy_length=2000
session.entropy_file=brainstorm
session.cache_limiter=nocache
session.cache_expire=180
session.use_trans_sid=1
sample code:
<?php
$username="test";
$_SESSION["username"]=$username;
echo "session contents",session_encode();
?>
This results in the output:
session:
I get no error messages, either on the screen on in the Apache error log.
Thanks in advance...