I’m having trouble cleaning PHP sessions and understanding why the garbage collector is not working automatically. Then I saw that the problem is that the session.save_path is set (by default of CyberPanel) and so the collector doesn’t work.
So I’m looking at CRON to create a cleaner, but I realized that there is already a CRON there, but it doesn’t work, why?
Does anyone have a good solution for this session issue?
To clarify, the garbage collector does not clean automatically and sessions are stored infinitively, leaving my server with no available inodes and giving error 500.