首页 > 其他 > 详细

CodeIgniter 错误: In order to use the Session class you are required to set an encryption key

时间:2015-04-22 13:18:39      阅读:161      评论:0      收藏:0      [点我收藏+]

CodeIgniter SESSION  第一次用 session 遇到这个错误 ,


说是要加一个密钥才可以使用,加就加吧,


打开 config.php 找到以下代码


 


/*
|--------------------------------------------------------------------------
| Encryption Key
|--------------------------------------------------------------------------
|
| If you use the Encryption class or the Session class you
| MUST set an encryption key.  See the user guide for info.
|
*/
$config[‘encryption_key‘] = ‘afafasfwertwerwer‘;


$config[‘encryption_key‘]    后面的密钥你随便加了。加完就可以使用了。

CodeIgniter 错误: In order to use the Session class you are required to set an encryption key

原文:http://www.cnblogs.com/kenshinobiy/p/4447026.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!