My users of MODx site often complain that after a certain time (from 2-3 hours to several days) throws out of their accounts and have to login again. I have tried to increase the lifetime of the session, but it does not help.
-
☆ A M B ☆
- 24,524 Posts
It would also help to know which version of MODx, as they handle sessions differently.
-
☆ A M B ☆
- 24,524 Posts
-
MODX Staff
- 12,272 Posts
Shared hosting means the session garbage collection from other sites on the server is likely kicking in. Solution: talk to the server admins or move hosts.
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
Thank you rthrash.
I wrote to support hosting.
-
☆ A M B ☆
- 24,524 Posts
You can modify the startCMSSession() function at the end of the manager/includes/config.inc.php file to add a line changing the location of the session files to some location of your choosing. Then the server-wide garbage collection that effects the entire shared server won’t effect your sessions. You’ll need to do something about cleaning out stale session files yourself, or they’ll fill up your disk space eventually.
http://php.net/manual/en/function.session-save-path.php