I noticed today that my server was running low on space, upon investigation I found 40GB worth of session files in the sessions directory. I tried a few settings in the config to make it stop, but it insists on creating 100mb worth of sessions every minute and I do not know why. I hesitate to switch to database sessions because once that space is used its not freeing up again. Feel like this is a known issue or just something I forgot to check, but my google-foo is failing me. How do I stop this spamming before my drive is full?
This is the config.php session section:
Code:
$config['sess_driver'] = 'files';
$config['sess_cookie_name'] = 'ci_session';
$config['sess_expiration'] = 7200;
$config['sess_save_path'] = '/var/lib/php/sessions/weatheros/';
$config['sess_match_ip'] = FALSE;
$config['sess_time_to_update'] = 300;
$config['sess_regenerate_destroy'] = TRUE;