Ci 错误 In order to use the Session class you are required to set an encryption key in your config file. 说明自己没有给session 加密 ,在配置文件config中 $config['encryption_key'] = '2rf3f3fwefwefwef2';