Click to See Complete Forum and Search --> : PHP 4.0.1 Sessions


Anon
07-21-2000, 11:02 AM
I'm running php on IIS/Win2000. I just installed the newest version of php which is supposed to have fixed the session bug for the win32 platform. When I test a session, I get an error message saying:

Warning: Failed to write session data. Please check that the current setting of session.save_path is correct (/tmp) in Unknown on line 0

I've tried changing the session.save path in the php.ini file to \tmp rather than /tmp,
I've alse tried an absolute path c:\inetpub\wwwroot\bin\tmp\ but end up with the same message. I know something is working better because with php4.0 I used to get nothing.

Anon
07-21-2000, 04:57 PM
You need to point to the Window temp dir. As in: session.save_path = \winnt\temp

Anon
07-21-2000, 05:10 PM
Thanks, It worked perfect.

Anon
04-26-2002, 11:47 AM
i had the problem and i changed the path, however i'm still getting the same problem, is there anytihng else you migfht have to change.

aAnother thing, if you just refresh the page after changing the ini, will it work?

Anon
06-26-2002, 06:10 AM
I changed php.ini to read

session.save_path = c:\winnt\temp

the problem was resolved.


Al