Welcome Guest, Not a member yet? Register   Sign In
CI3 - Are old sessions in file auto deleted from server
#1

Hi,

im using latest dev version of CI3 and have sessions saved in the filesystem. 

Here is an example of my config

Code:
$config['sess_driver'] = 'files';
$config['sess_cookie_name'] = 'domain';
$config['sess_expiration'] = 7200;
$config['sess_save_path'] = '/home/user/sessions';
$config['sess_match_ip'] = FALSE;
$config['sess_time_to_update'] = 300;

$config['cookie_prefix']    = 'domain';

$config['cookie_domain']    = '.domain.com';
$config['cookie_path']        = '/';
$config['cookie_secure']    = FALSE;
$config['cookie_httponly']     = FALSE;

My question is .. if the session id is being auto updated every 300 seconds and thus creating a new file in the sessions folder do the older ones get auto removed or is this something I need to put in place my self ?

Thanks to everyone for all your hard work on bringing CI3 to fruition. Good to see things progressing with CI again :-)
Reply
#2

The Garbage Collector should delete the expired session file automaticly.

Reply
#3

Hi,

thanks for the reply.

do you know how often this happens ?
Reply
#4

Should be the value you set in your php.ini configuratin at session.gc_maxlifetime or in the ci sess_expiration value.

Reply
#5

i managed to track it down in the code. makes sense now.

Thanks again for your help, very much apreciated
Reply




Theme © iAndrew 2016 - Forum software by © MyBB