CodeIgniter Forums
Session files in CI4 - Printable Version

+- CodeIgniter Forums (
+-- Forum: CodeIgniter 4 (
+--- Forum: CodeIgniter 4 Support (
+--- Thread: Session files in CI4 (/showthread.php?tid=78286)

Session files in CI4 - Hexes - 12-29-2020


I would like to know how does CI4 session files works.

My issue is that within two weeks, the server creates about 40-50k sessions files that use a lot of server "Inode" resources.

So the question is how those files should work, do they suppose to get deleted after some time?

My session files look like this. You can see that every minute server creates a lof of session files:

[Image: Screenshot-2020-12-29-at-17-36-10.png]

RE: Session files in CI4 - InsiteFX - 12-29-2020

Cleanup PHP Sessions like a PRO

I wrote a method to clean it up in the WRITABLE,  I'll see if I can find it was a while back.