CodeIgniter Forums
Session files in CI4 - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30)
+--- Thread: Session files in CI4 (/showthread.php?tid=78286)



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

Hello,

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.