Plugin Directory

Inactivity Auto Sign Out Plugin

This plugin automatically logs out the user after a period of inactivity. The time period can be configured and it works with BuddyPress.

How do I change the inactivity time period?

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);

How do I set the redirect URL on auto log out?

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

Average Rating

4 stars
(4 ratings)

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
100,1,1
100,1,1
100,1,1