Welcome Guest, Not a member yet? Register   Sign In
Running session garbage collection with a cron on CI3
#1

I'm having difficulty getting any sort of garbage collection working in CI3 on Ubuntu. This is an inherited project so I'm not sure if this has ever worked. I'm running a couple of CI apps on the same server, and am using different session paths, so I'd like to implement a cron-based cleanup to have better control when it happens.
I have seen suggestions here and elsewhere to use CI's own gc() method from Session_files_driver.php. Can someone help me understand how to do this please? 
I can't work out how to access the gc() method from my own CLI-based PHP script. I've fiddled around with this for a day or so without success so it's time to ask for help  Sad
Thank you!
Reply


Messages In This Thread
Running session garbage collection with a cron on CI3 - by MereDev - 07-12-2021, 04:28 AM



Theme © iAndrew 2016 - Forum software by © MyBB