緣由不明,解決辦法:
php
$config['sess_save_path'] = NULL;
改成session
$config['sess_save_path'] = FCPATH.'public/sess_save_path'; //在根目錄下新建public/sess_save_path,並給寫文件權限
解決辦法:
codeigniter
$this->load->library('encryption'); $key = bin2hex($this->encryption->create_key(16)); echo $key;
生成key,$config['encryption_key'] = 'aab3162f9de3bdd00f7dd52662fed21d';this