Session Garbage collection |
On some shared hosting, PHP's automatic Garbage collection is effectively disabled, and replaced with a CRON job (session.gc_probability and session.gc_divisor are set so garbage collection never happens)
Because CodeIgniter stores session files in the "writeable" folder, the CRON job does not clear the files and the disk fills up. https://forum.codeigniter.com/showthread...ht=garbage \App\Config\Session::sessionExpiration sets the ini value for session.gc_maxlifetime Can we add \App\Config\Session::sessionProbability sessionProbability will ini_set session.gc_probability and session.gc_divisor |
Messages In This Thread |
Session Garbage collection - by RichardKeasley - 03-03-2023, 03:41 AM
RE: Session Garbage collection - by InsiteFX - 03-04-2023, 12:46 AM
|