Welcome Guest, Not a member yet? Register   Sign In
Session Garbage collection
#1
Question 
(This post was last modified: 03-03-2023, 06:50 PM by kenjis.)

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
Reply


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



Theme © iAndrew 2016 - Forum software by © MyBB