提示你如果想用session类的话就必须要设置一个加密的密钥!好吧,好吧。。那就给设置一个吧,毕竟人家也为安全着想
打开application/config/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'] = '在这里加上密钥即可正常!';
|