用户
 找回密码
 入住 CI 中国社区
搜索
查看: 3299|回复: 5
收起左侧

[版本 3.x] 更新了CI3.0,session用files方式,总是报超时错误

[复制链接]
发表于 2015-5-26 15:52:04 | 显示全部楼层 |阅读模式
更新了CI3.0,session用files方式,总是报超时错误
错误在Session_files_driver.php文件的168行
发表于 2015-5-26 22:30:52 | 显示全部楼层
可能与系统文件夹的权限有关 看看config.php中$config['sess_save_path'] = ? 这个设置的路径有没有写权限  如果还不行 最好把你的报错信息贴出来 大家看看
 楼主| 发表于 2015-5-27 10:30:15 | 显示全部楼层
换成redis也有这个问题,可能是锁session文件或者redis里的数据,锁了很长时间导致其他用到的地方一直等待,最后超时,求帮助
 楼主| 发表于 2015-5-27 10:36:36 | 显示全部楼层
<b>Fatal error</b>:  Maximum execution time of 30 seconds exceeded in <b>D:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\icqnew\system\libraries\Session\drivers\Session_redis_driver.php</b> on line <b>327</b><br />
<br />
<b>Fatal error</b>:  Maximum execution time of 30 seconds exceeded in <b>D:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\icqnew\system\core\Common.php</b> on line <b>684</b><br />
<br />
<b>Fatal error</b>:  Maximum execution time of 30 seconds exceeded in <b>D:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\icqnew\system\libraries\Session\drivers\Session_redis_driver.php</b> on line <b>237</b><br />
发表于 2015-5-28 17:21:57 | 显示全部楼层
你应该把你用session的那段代码贴出来。根据分析,你应该没及时释放session的锁。
发表于 2015-5-29 12:12:31 | 显示全部楼层
alichino1 发表于 2015-5-27 10:36
Fatal error:  Maximum execution time of 30 seconds exceeded in D:\Program Files (x86)\Apache Softwar ...

这不是进redis了么。。。
你不是说用的file么

本版积分规则