CI3 - Are old sessions in file auto deleted from server - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6) +--- Forum: CodeIgniter 3.x (https://forum.codeigniter.com/forumdisplay.php?fid=17) +--- Thread: CI3 - Are old sessions in file auto deleted from server (/showthread.php?tid=1226) |
CI3 - Are old sessions in file auto deleted from server - futurewebs - 02-20-2015 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'; 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 :-) RE: CI3 - Are old sessions in file auto deleted from server - Rufnex - 02-20-2015 The Garbage Collector should delete the expired session file automaticly. RE: CI3 - Are old sessions in file auto deleted from server - futurewebs - 02-20-2015 Hi, thanks for the reply. do you know how often this happens ? RE: CI3 - Are old sessions in file auto deleted from server - Rufnex - 02-20-2015 Should be the value you set in your php.ini configuratin at session.gc_maxlifetime or in the ci sess_expiration value. RE: CI3 - Are old sessions in file auto deleted from server - futurewebs - 02-20-2015 i managed to track it down in the code. makes sense now. Thanks again for your help, very much apreciated |