'Codeigniter application logout automatically when i logged into the application
I have a CodeIgniter 3 application with MySQL as the database. The application logged me out automatically after the successful login. At some point, the application returns the 303 error while updating the values via ajax call in the application. I have pasted my code below.
$config['sess_driver'] = 'database';
$config['sess_cookie_name'] = 'gsms';
$config['sess_expiration'] = time()+10000000;
$config['sess_save_path'] = 'sdi_sessions';
$config['sess_match_ip'] = TRUE;
$config['sess_time_to_update'] =time()+10000000;
$config['sess_regenerate_destroy'] = FALSE;
$config['sess_match_useragent'] = FALSE;
$config['sess_expire_on_close'] = TRUE;
$config['sess_encrypt_cookie'] = TRUE ;
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
