Hi there,
I built a program using CI 3 with a login page that auto-loads the 'session' library in autoload.php.
The problem is that occasionally, now 2nd day in a row, I encounter a 500 Internal Server Error when using the site. After reviewing the error logs in cpanel, this is what I see:
Code:
mod_fcgid: stderr: PHP Fatal error: Maximum execution time of 30 seconds exceeded in /system/libraries/Session/drivers/Session_files_driver.php on line 247
The only thing that helps fix this is removing the session library from the auto-load file, waiting some time and then re-adding the session library. This happens very sporadically and I am not sure whether this is a bug or something to do with the server config. Once the session library is re-added to the autoload file after some time, the website is working as normal.
All the default session settings are used:
PHP Code:
$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;
Does anyone have any suggestions as to why this is happening and how to troubleshoot this further? Any help is much appreciated. Thank you!