An Error Was Encountered
In order to use the Session class you are required to set an encryption key in your config file.
第一次使用session的時候出現這個錯誤,提示需要加個密鑰才能使用。
打開application/config下面的config.php 文件。
修改encryption_key選項成如下:(值可以隨便填)
$config['encryption_key'] = 'qwerty';
填完之後就不會報這個錯誤了。