首页 > 未分类 > 设置session.save_handler = user后出错怎么办?

设置session.save_handler = user后出错怎么办?

2015年5月7日

设置session.save_handler = user后出错怎么办?
http://www.zhihu.com/question/20214307
我想用数据库来存储session,把配置文件里的session.save_handler改为了user,结果去发现php根本启动不了,出现如下的错误:

PHP Warning: Unknown: user session functions not defined in Unknown on line 0

Warning: Unknown: user session functions not defined in Unknown on line 0
PHP Fatal error: Unknown: Failed to initialize storage module: user (path: ) in Unknown on line 0

Fatal error: Unknown: Failed to initialize storage module: user (path: ) in Unknown on line 0
Could not startup.
大家知道什么原因吗?
ou!刚刚发现把 “session.auto_start = 1” 改成 session.auto_start = 0“就可以了!哈哈

分类: 未分类 标签:
本文的评论功能被关闭了.