Web Hosting Talk







View Full Version : PHP session_start() warning


rrsnider
02-25-2002, 10:59 PM
I am getting the following warning when I issue a session_start() in PHP. I am running omniHTTPD under windows98.

Warning: open(/tmp\sess_49c355e512d0185ad5fe8ecee06f44c7, O_RDWR) failed: m (2) in C:\wwwroot\tanningcentral\session.php on line 2
valid_user=rrsnider
Warning: open(/tmp\sess_49c355e512d0185ad5fe8ecee06f44c7, O_RDWR) failed: m (2) in Unknown on line 0

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

Thanks in advance
Bob

kunal
02-26-2002, 03:17 AM
Do you have a dir called tmp in your c: ?

Ahmad
02-26-2002, 06:37 AM
Go to your windows directory and find the php.ini file. Open the file and look for this line:


session.save_path = /tmp


Change it to an existant directory, like c:/windows/temp; it'll be like this:


session.save_path = c:/windows/temp