This plugin helps to minimize some security concerns. It will automatically sign an inactive user out after a specified time period of inactivity.
You need to change the value of the constant AUTOMATIC_SIGN_OUT_MAXIMUM_TIME to the time you specify. The time is measured in seconds, so 60 = 1 minute, 60 * 60 = 1 hour, 60 * 60 * 24 = 1 day. Here are some examples:
define('AUTOMATIC_SIGN_OUT_MAXIMUM_INACTIVITIY_TIME', 60 * 60 * 24); // 1 day
define('AUTOMATIC_SIGN_OUT_MAXIMUM_INACTIVITIY_TIME', 60 * 60); // 1 hour
define('AUTOMATIC_SIGN_OUT_MAXIMUM_INACTIVITIY_TIME', 60); // 1 minute
If you don't specify a redirection address and leave it as the default site_url() then the user will not be redirected anywhere when he is automatically logged out. However, if you want to change it to an actual address, then replace site_url() with "http://www.yourwebsite.com/". (Remember to include the quotations.)
Requires: 2.7 or higher
Compatible up to: 3.3.2
Last Updated: 5 years ago
Active Installs: 500+
Got something to say? Need help?