codeigniter Message: mkdir(): Invalid path Filename: drivers/Session_files_driver.php原因不明,解决办法:
? 1 | $config [ 'sess_save_path' ] = NULL;
|
改为 ? 1 2 | $config [ 'sess_save_path' ] = FCPATH. 'public/sess_save_path' ;
//在根目录下新建public/sess_save_path,并给写文件权限
|
自动加载session报错:解决办法: ? 1 2 3 | $this ->load->library( 'encryption' );
$key = bin2hex( $this ->encryption->create_key(16));
echo $key ;
|
生成key,$config['encryption_key'] = 'aab3162f9de3bdd00f7dd52662fed21d';
|