I’ve just begun to develop a site on a flaky server the client wants to use for a dev platform. Apparently it has a poorly configured cluster environment. The manager kept logging off at random intervals; almost impossible to work on it
So I put this in the .htaccess file
php_value session.save_path "/blah/blablah/moreblah/2/2/longdrawnout.site.somewhere.net/modx/sessions/"
The sessions folder I created is actually one folder above the web root, so it’s safe enough. It does, of course, have to be writable by PHP. In this case, it’s on some kind of suexec, so 755 was fine.
Now I don’t have any more logging off problems. I do go in and clean it out from time to time; you might want to make a module (or even a plugin) to clean out sessions older than 24 hours or something.