session写入错误解决

本文详细介绍了如何解决在使用Cacti进行流量监控时遇到的session错误问题,包括通过在特定目录创建文件夹来解决错误,并提供了修改php.ini配置的方法作为替代解决方案。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

打开流量监控前台页面后报如下错:
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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值