I’m not sure this is the right forum, but it’s not clear to me which forum is.
Anyway, how can one modify the duration of the cookies created by the weblogin snippet? My users are lazy and don’t want them to expire in one hour, as they seem to do right now.
By the way, where can I find documentation about the vanilla snippets?
Thanks for the help.
-
☆ A M B ☆
- 24,524 Posts
This is an issue with your server and how PHP is configured. It has little or nothing to do with the cookies, but with the PHP session garbage collection.
You can set up your session_save_path to something other than the default, and the global session garbage collector won’t remove them at all; in that case you have to have a mechanism for clearing up old session files yourself.
There are hacks and workarounds involving javascript timers calling for images at regular intervals to keep the session alive.
-
MODX Staff
- 10,725 Posts
For now, you can add those to the startCMSSession function in the manager/includes/config.inc.php. Just be aware that anytime you run an upgrade, you’ll need to add that back to the config file. In addition, future releases (0.9.7+) will include system settings to configure these and many other session configuration variables, as well as the ability to provide a custom session handler class.