How to Automatically Log Out Idle Users in WordPress?Do you want to auto log out idle users in WordPress? As a security conscious site owner you may want to inactive users to login again.
Banking apps and websites already used this technique to avoid unauthorized users from access or hijack them. Also you can implement this functionality on your own WordPress site to improve security.
In this post, we will show you how to automatically logout inactive users in WordPress. Once log out, users will asked to login again to resume from where they are working.
The initial thing you need to do is to install & activate the inactive Logout plugin. After activation simply navigate to settings>> Inactive Logout to configure the plugin setting.
First you need to enter time after which a user will be automatically logged out. You can enter time in minutes and make sure it’s not too short or too long. After that, you can enter message that you want to show to inactive users.
Below in message field, you will find more options of plugin setting to change logout functionality. Default setting would work for most websites but you can change them if you want.
How to Automatically Log Out Idle Users in WordPress?
Popup Background:- you can enable this feature if you want to change background color of screen when user session times out. The option will cover user’s browser screen and keep the contents hidden from prying eyes.
Show Warn Message Only:- if you don’t want auto logged out feature then check this option. It only displays the warning message and covers the screen if you check this option.
Disable timeout countdown:- this option will remove countdown warning and directly logout idle users.
Disable Concurrent Logins:- this feature will restrict your WordPress users from concurrent logins. This means they would not able to use the same account to login at the same time from different devices.
Enable redirect:- by default, the plugin displays a login popup and doesn’t redirect users. You can enable this option to redirect users to any other page you like. After making all changes don’t forget to click on save changes.
Setting up different timeout settings based on user roles:
If you want to setup timeout rules on the base of user roles & responsibilities, then you need to do this through advanced management settings.
First select the user roles that you want to setup differently then global settings. After that, you will able to select timeout in minutes, redirects or even disable timeout for user role.
Once you satisfied with settings, click on save settings button to save changes. To see the plugin work live, login your site and do nothing for the time duration you have set. After that you will see a popup countdown.
You can click on continuous button to resume working without session expiration. Users who don’t click on continue button will logout and see the login screen.