php - session error in codeigniter? -


when want set session data in codeigniter 3 says error like:

a php error encountered  severity: warning  message: mkdir(): invalid path  filename: drivers/session_files_driver.php  line number: 117  backtrace:  file: c:\xampp\htdocs\ci-test\application\controllers\login.php line: 7 function: __construct  file: c:\xampp\htdocs\ci-test\index.php line: 292 function: require_once 

here code want set session data.

$sess_array = array(          'id' => 1,          'username' => 'bikramkc.kc@gmail.com'        ); $this->session->set_userdata($sess_array); 

sharing solution helped me, try set config variable like:

$config['sess_save_path'] = sys_get_temp_dir(); 

Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -