I have a PHP site written with CodeIgnitor 3. I store sessions in database table. The problem is sessions' destroys after about 30-40 minutes of it's life during day time, and after about 60-80 minutes at night. The oldest sessions just removes from table while other still live.
My config:
Code:
$config['sess_driver'] = 'database';
$config['sess_cookie_name'] = '<cookie_name>';
$config['sess_expiration'] = 0;
$config['sess_save_path'] = '<table_name>';
$config['sess_match_ip'] = FALSE;
$config['sess_time_to_update'] = 30000;
$config['sess_regenerate_destroy'] = FALSE;
Earlier I was using Codeigniter 2 and problem was the same.
I want to sessions live at least 8 hours (or unlimited sessions).