Today I adjust my php program, but there have been error “Warning: Unknown: open(d:/temp/tmp/sess_lco4pavd5fmkc60djl24islim6, O_RDWR) failed: No such file or directory (2) in Unknown on line 0” and “Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (d:/temp/tmp) in Unknown on line 0”

How to fix this error?

1.Check the directory "d:/temp/tmp" exists or not.Reset a really existed directory.Open php.ini or php5.ini ,set "session.save_path" a really existed directory.Remove the semicolon in front.

2.Check whether the folder  "d:/temp/tmp"  has write property .Open the folder's write property.

Now this problem should not occur again.

If it displays the error "Warning: session_start(): open" .You should change the "session.auto_start = 0" to "session.auto_start = 1" in the php.ini or php5.ini.

This address is