I need to tell the server to empty the
modx_session table before it gets too big.
Unfortunately I don’t have access to the PHP.ini to change
session.gc_divisor values (as suggested by Mark Hamstra on this very helpful article) therefore I am wondering if there is a way to overwrite the server settings via the .htaccess file.
I have tried but can’t make it work.
Could ask the host if they have a way for you to fix that.
Alternatively, SiteDash includes the ability to regularly clean up sessions for you. That monitors the size and age of the sessions table to know when to clean things up.
Hi Mark thank you for your suggestions I’ll try to ask the host first.