1. 程式人生 > >codeigniter Message: mkdir(): Invalid path Filename: drivers/Session_files_driver.php

codeigniter Message: mkdir(): Invalid path Filename: drivers/Session_files_driver.php

codeigniter Message: mkdir(): Invalid path Filename: drivers/Session_files_driver.php
原因不明,解決辦法:

$config[‘sess_save_path’] = NULL;
改為

$config[‘sess_save_path’] = FCPATH.’public/sess_save_path’;

//在根目錄下新建public/sess_save_path,並給寫檔案許可權

自動載入session報錯:
解決辦法:

$this->load->library(‘encryption’);

key=bin2hex( this->encryption->create_key(16));

echo key;key, config[‘encryption_key’] = ‘aab3162f9de3bdd00f7dd52662fed21d’;

原帖 :https://my.oschina.net/rain21/blog/505771