Welcome Guest, Not a member yet? Register   Sign In
Session_file_driver Error
#1

Hello,

My company is ditching coldFusion for PHP, I just converted my to CI 3.1.9. I'm session files for my application with MSSQL. Here is the relevant config.

$config['sess_driver'] = 'files';
$config['sess_cookie_name'] = 'ci_sessions';
$config['sess_expiration'] = 7200;
$config['sess_save_path'] = FCPATH.'app_sessions';
$config['sess_match_ip'] = FALSE;
$config['sess_time_to_update'] = 300;
$config['sess_regenerate_destroy'] = FALSE;


I getting the following error spectacularly:

PHP Fatal error:  Maximum execution time of 300 seconds exceeded in E:\CIapp\system\libraries\Session\drivers\Session_files_driver.php on line 212

Line 212 on Session_files_driver.php:

if (($buffer = fread($this->_file_handle, $length - $read)) === FALSE)
{

break;
}



Any suggestion is greatly appreciated. Sorry if this is apparent, I'm relatively new to php. Thanks in advance for your help!

-Brad
Reply
#2

I don't think that this has something to do with Session_files_driver.php. Check your code for infinite loops. There's got to be somewhere in your code.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB