php - Codeigniter 3 Setting session pops MYSQL error -


i'm working codeigniter not long time, encountered weird issue.

i'm trying set session called user_id after login process reason mysql error, doe not use mysql session storage.

there's session config file.

$config['sess_driver'] = 'files'; $config['sess_cookie_name'] = 'ci_session'; $config['sess_expiration'] = 7200; $config['sess_save_path'] = null; $config['sess_match_ip'] = false; $config['sess_time_to_update'] = 300; $config['sess_regenerate_destroy'] = false; 

there shouldn't reason ci give me mysql error when trying set session.

i have managed find answer... issue default lastest codeigniter version did not had $config['sess_use_database'] = false; added in config.php file.


Comments

Popular posts from this blog

Load Balancing in Bluemix using custom domain and DNS SRV records -

oracle - pls-00402 alias required in select list of cursor to avoid duplicate column names -

python - Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] error -