Seems to be my php scripts are only run on Windows+IIS :( and couldn't
migrate to Windows+Apache.
I write small and short scripts to test the session under Windows+Apache,
then it run well,
Seems that i should rewrite the scripts so it will run on both IIS and Apache.
thank you Jonathan Pilboro
This sounds weired but try to have a look at your IE settings. If cookies
don't work on your IE (on the client machine, not the server of course),
your sessions won't either (unless you use session.use_trans_sid) :
sessions use cookies to keep their Id, if PHP doesn't find an ID (a cookie),
he wil
register_globals is set to off by default, so you will have to use the
$_SESSION[] superglobal to access the session variables - is this why
it appears a new session has been created? - also check session_start()
in all pages.
You could try telnet-ting the page e.g.
HEAD /cookietest.php HTTP/1.0
I've set variables for session.save_path = c:/php4/tmp in the php.ini,
when starting request from the browser to the server (Win+Apache+PHP)
for example http://localhost/test/test_session.php
the temporary sessions files are created, and stored session information.
When second request arrived to th
In my (limited)experience, session variables won't work with Apache on
windows until you set the session.save_path variable in the php.ini
file to a directory for the temporary session files to go in. Why it
works in IIS I'm not sure - I have never used it.
Regards,
Jonathan Pilborough
=
--