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

[讨论/交流] 自动载入session错误 各位朋友 帮忙看下

[复制链接]
发表于 2011-5-7 15:45:52 | 显示全部楼层 |阅读模式
CI 2.0
autoload代码
$autoload['libraries'] = array('database','xmlrpc','session');
错误报告
An Error Was Encountered
In order to use the Session class you are required to set an encryption key in your config file.
发表于 2011-5-7 15:48:03 | 显示全部楼层
回复 ohmygod 的帖子

多看手册呀,这些都有说明的。


In order to use the Session class you are required to set an encryption key in your config file.

就是说要使用session类,你必须在config.php里把encryption key这项给个值。
发表于 2011-5-7 15:48:46 | 显示全部楼层
config.php
$config['encryption_key'] = ''; 弄个值
 楼主| 发表于 2011-5-7 16:12:51 | 显示全部楼层
回复 lamtin 的帖子

非常感谢
 楼主| 发表于 2011-5-7 16:13:05 | 显示全部楼层
回复 jeongee 的帖子

非常感谢
发表于 2011-7-27 16:28:31 | 显示全部楼层
  

本版积分规则