This plugin automatically logs out the user after a period of inactivity. The time period can be configured and it works with BuddyPress.
Change this code in the plugin's main php file. Set the time period to whatever you like. It's in seconds, so 3x60x60 is equal to 3 hours of inactivity.
define('MM_INACTIVITY_AUTO_LOG_OUT_MAX_INACTIVITY_TIME', 3*60*60);
You can change this definition to any URL you like. The default is site_url(), which is your home page. You could set it to:
define('MM_INACTIVITY_AUTO_LOG_OUT_REDIRECT_URL', site_url());
define('MM_INACTIVITY_AUTO_LOG_OUT_REDIRECT_URL', 'http://www.example.com');
define('MM_INACTIVITY_AUTO_LOG_OUT_REDIRECT_URL', site_url() . '/auto-logged-out.html');
Requires: ??? Try it! or higher
Compatible up to: 3.0.5
Last Updated: 2010-9-1
Downloads: 2,906
Got something to say? Need help?