How to automatically log out idle users in WordPress?

Do you want to force log out idle users in your WordPress site? Logging out idle users helps protect user privacy by ensuring that sensitive information is not accessible to others who may use the same device later. It also helps prevent unauthorized access to user accounts if a user forgets to log out or leaves their session unattended on a shared or public computer.

By default, the WordPress session expiration is 48 hours or 14 days if you check “Remember Me” checkbox during log in

This means if you log in and leave without logging out, you’ll be logged in for a long time without you noticing and maybe exposing sensitive information.

Log out Idle users

WPForce Logout plugin has a feature to log out idle users. You can specify the idle period before logging out. Here’s the screenshot of the options:

logout idle users

Along with this feature, there are other handy features within the plugin such as force logout specific user(s), force logout all users, displaying online/offline users, last login time, auto logout on browser close, extend session expiration and logout redirect.

While this specific feature of automatically logging out idle users is only available in Premium version, you can get the WPForce Logout for Free.

author avatar
Sanjeev Aryal
Sanjeev Aryal is the creative mind behind Mini Plugins, a brand dedicated to developing lightweight, efficient WordPress plugins. He also writes occasionally and contributes to WordPress community.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *