Warning:
session_start() [function.session-start]:
open(E:/ttt\sess_e0b64760c92422d81c1d6202b66884f6, O_RDWR) failed: No
such file or directory (2) in
E:\APMServ5.2.6\www\htdocs\session\index.php on line 13
Warning:
Unknown: open(E:/ttt\sess_e0b64760c92422d81c1d6202b66884f6, O_RDWR)
failed: No such file or directory (2) in Unknown on line 0
Warning:
Unknown: Failed to write session data (files). Please verify that the
current setting of session.save_path is correct (E:/ttt) in Unknown on
line 0
PHP配置文件中session.save_path负责session文件的存放位置。
如果没有配置则不会生成session文件,如果配置的目录session.save_path = "E:/ttt"不存在,则会报错:
Warning: session_start() [function.session-start]: open(E:/ttt\sess_e0b64760c92422d81c1d6202b66884f6, O_RDWR) failed: No such file or directory (2) in E:\APMServ5.2.6\www\htdocs\session\index.php on line 13
Warning: Unknown: open(E:/ttt\sess_e0b64760c92422d81c1d6202b66884f6, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (E:/ttt) in Unknown on line 0
所以,如果需要生成session文件,需要检查配置文件.如果没有配置目录,则请将php.ini中的“;session.save_path = "/tmp"” 改为“session.save_path = "E:/yourdir"”,并切记在E盘根目录下新建,名为yourdir的文件夹。
设置完成后需要重启服务,然后设置生效。