ohmygod 发表于 2011-5-7 15:45:52

自动载入session错误 各位朋友 帮忙看下

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.

jeongee 发表于 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这项给个值。

lamtin 发表于 2011-5-7 15:48:46

config.php
$config['encryption_key'] = ''; 弄个值

ohmygod 发表于 2011-5-7 16:12:51

回复 lamtin 的帖子

非常感谢

ohmygod 发表于 2011-5-7 16:13:05

回复 jeongee 的帖子

非常感谢

longlong 发表于 2011-7-27 16:28:31

:lol
页: [1]
查看完整版本: 自动载入session错误 各位朋友 帮忙看下