session写入错误解决

打开流量监控前台页面后报如下错:
Warning
: session_start() [function.session-start]: open(C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/1/sess_d3591bae73b7b5c9b8794c0fe6159b26, O_RDWR) failed: No such file or directory (2) in C:/XXX/XXX/www/cacti/include/global.php on line 130

Warning: session_start() [
function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:/Received/AppServ/www/cacti/include/global.php:130) in C:/XXX/XXX/www/cacti/include/global.php on line 130

Warning: Unknown: open(C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/1/sess_d3591bae73b7b5c9b8794c0fe6159b26, 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 (C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/1) in Unknown on line 0


Warning: session_start() [function.session-start]: open(C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/1/sess_d3591bae73b7b5c9b8794c0fe6159b26, O_RDWR) failed: No such file or directory (2) in C:/XXX/XXX/www/cacti/include/global.php on line 130

Warning: session_start() [
function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:/Received/AppServ/www/cacti/include/global.php:130) in C:/Received/AppServ/www/cacti/include/global.php on line 130

Warning: Cannot modify header information - headers already sent by (output started at C:/Received/AppServ/www/cacti/include/global.php:130) in C:/XXX/XXX/www/cacti/auth_login.php on line 208

Warning: Unknown: open(C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/1/sess_d3591bae73b7b5c9b8794c0fe6159b26, 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 (C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/1) in Unknown on line 0

解决方法:在“C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/”目录中创建文件夹名称为"1"的文件夹,问题就解决啦。当然还有更好的办法,但这是最简单而快速的。

方法2:修改php.ini中的session.save_path = c:/temp后,在c盘下建temp文件夹,然后重启apache.或者IIS

你可能感兴趣的:(session写入错误解决)