Inactive Logout


Protect your WordPress users’ sessions from shoulder surfers and snoopers!

Use the Inactive Logout plugin to automatically terminate idle user sessions, thus protecting the site if the users leave unattended sessions.

The plugin is very easy to configure and use. Once you install and activate the plugin simply configure the idle timeout from the plugin settings. So now any unattended idle WordPress user sessions will be terminated automatically. You can also display a custom message to idle user sessions, alerting them that the session is about to end.

Try it out ==> Demo


  • Change idle timeout time.
  • Count down of 10 seconds before actual logout. You can remove this feature if you dont want it.
  • Add only Wake Up! message where user will not logout but instead a wakeup message will be shown upon inactive.
  • Custom Popup Message.
  • Show idle message for non authenticated users or redirect them.
  • Concurrent user logouts.
  • Redirect to a Different Page instead of Popup box. Create a page such as timeout page and add your content there by creating a blank template or style it as you wish according to your theme.
  • Multiple User Role Configurations for individual timeout and session logout redirects.
  • Logout to custom page or existing page.
  • Clean UI
  • Multisite Support: Override all sites with one setting.


Few of the key features to Inactive Logout Pro:

  • Fully functional multi-tab support.
  • Auto browser close logout after defined duration.
  • Track Visitors based on (Login time, logout time, browser, online status, session duration, role, os, IP)
  • Force Logout All Users
  • Logout Specific User(s)
  • Bulk Logout Users
  • Concurrent Login Limits.
  • Last Login Activity
  • Override Multiple Login priority
  • User Lock whenever certain limit login has been reached.
  • Track user login sessions.
  • Logout redirects.
  • Login redirects.
  • Disable inactive logout for specified pages according to your need. Check this Documentation for additional post type support.
  • Disable native wordpress login popup after logout
  • Modal Customizer

**See the Inactive Logout homepage for further information.

Please consider giving a 5 star thumbs up if you found this useful.


  • Showing Inactive Logout Settings Page.
  • Wakeup functionality message box.
  • Session going to logout if continue is clicked then session will not end.
  • Multi User Role Screen


  1. Upload Inactive logout or download inactive logout
  2. Activate the inactive logout from the plugins menu in WordPress
  3. Goto “Inactive Logout” settings menu inside settings menu to configure.


Auto logut when browser close version ( in beta )

This feature has been moved to PRO version of the plugin.

Mailpoet page not loading in wp-admin mailpoet pages after inactive logout install

Filter “ina_logout_mailpoet_conflict_fix” incase conflict happens because of inactive logout scripts on mailpoet page use this filter to disable and avoid conflict. Add filter to your functions.php file and return false.

Tested on:
From file: plugins/mailpoet/lib/Util/ConflictResolver.php version 3.46.1
Function: scope public resolveStylesConflict()
Line: 83

Plugin Conflicts

Slim Stat Analytics: Users using “Slimstat Analytics” plugin version upto 4.6.2 might find conflict issue with colorpicker javascript library. This conflict was identified by psn and has been fixed in later versions of slim stat analytics.

Popup Modal Customization HTML Render Elements

  • For Default popup customization: Code
  • For Wakeup popup customization: Code


2023 年 6 月 7 日
I was searching for a plugin that does this. I found a couple, but they had very limited functionality Inactive Logout Pro is extraordinary. It has some very unique features that I could not find in any other plugin Browser Close Logout: Nobody remembers to actively log out before closing the browser. Hence, browser close log out is one of the most impressive features in the plugin. There is no other plugin that provides this Maximum number of logins per user: Number of users that can access the same user at the same time. This is awesome if you sell subscriptions with varied plans like Netflix Redirect Logged out users using AJAX: If you are selling courses, just logging the user out in the backend is not useful at all, because the user can just keep watching a course video despite being logged out. This is where AJAX requests come in. The user is actively redirected to another page (even when the user has not refreshed the page) In a nutshell, the best concurrent user security plugin out there. Go for the paid version, you won’t regret it
2023 年 3 月 15 日
Great plugin, does exactly what it says it does. Looks clean, nicely customisable, thanks a lot!
2023 年 3 月 7 日
Very useful… easy to setup. Can’t be better. Add more options with the pro one if you need it. Or donate here… as i’ve made.
2022 年 12 月 3 日 2 回复
it works very well. However, if I watch a youtube video (with or without full screen) my session expires. Is it possible to ensure that the session doesn’t expire when I’m playing an audio or video stream?


“Inactive Logout” 是开源软件。 以下人员对此插件做出了贡献。


「Inactive Logout」插件已被翻译至 2 种本地化语言。 感谢所有译者为本插件所做的贡献。

将“Inactive Logout”翻译成您的语言。




3.3.4 – June 27th, 2024

  • Added: Bottom counter bar text customizable.
  • Added: Throttle detection for inactive tabs.
  • Minor changes.

3.3.3 – May 23rd, 2024

  • Minor changes.

3.3.2 – May 20th, 2024

  • Styling changes

3.3.1 – May 16th, 2024

  • Added: Date format for counter bar based on WordPress date time setting.
  • Fixed: Minor JS warning shown in inactive settings page.
  • Translations updated.

3.3.0 – April 19th, 2024

  • New Feature: Popup and redirect for non authenticated users.
  • Updated translations.
  • Optimized javascript

3.2.6 – March 14th, 2024

  • Fixed: wp_footer and wp_header priority issue for logout popups.

3.2.5 – March 8th, 2024

  • Fixed: Sometimes settings save not working because of TinyMCE error.

3.2.4 – January 9th, 2024

  • Minor documentation changes.

3.2.3 – September 20th, 2023

  • Security Updates.

3.2.2 – September 18th, 2023

  • Fixed: Responsive design on backend.
  • Removed: Old packages.

3.2.1 – July 31st, 2023

  • Translations Updated
  • Added: Setting to disable automatic redirection after logout.
  • Minor Fix on Autoloader

3.2.0 – June 29th, 2023

  • Refactored Scripts.
  • Design Changes.
  • Bug Fixes.

3.1.7 – June 6th, 2023

  • Updated: Scripts

3.1.6 – May 31st, 2023

  • UI Changes.
  • Corrected: Go Pro tab to open in external link.

3.1.5 – May 25th, 2023

  • Fixed: Concurrent login option was not working.

3.1.4 – May 16th, 2023

  • UI Changes.
  • Fixed: Role based timeout options not working correctly.

3.1.3 – May 16th, 2023

  • Downgraded react render method for backwards compatibility.

3.1.2 – April 20th, 2023

  • Updated: WP Scripts.
  • Added: Trigger for custom events.
  • Fixed: Sometimes save not working in administrator section.
  • Minor changes.

3.1.0/3.1.1 – April 5th, 2023

  • Fix: Multisite Setting save.
  • Added: Logout redirect to selected page.
  • Backwards compatibility.
  • Bug Fixes.

3.0.14 – March 31st, 2023

  • Compatibility with WordPress 6.2
  • Idle Timeout limit has been set to 24 hours.
  • Minor changes.

3.0.13 – March 2st, 2023

  • Fixed: Logout Redirection not working in certain cases.

3.0.12 – January 30th, 2023

  • Fixed: Deprecated filter for filter_input for PHP version 8 and greater.
  • Added: Session logout message customization.

3.0.11 – November 14th, 2022

  • Fixed: Save not working for multisite.
  • Added: Minor changes added.

3.0.10 – October 31st, 2022

  • Added: Hide contine without reload button button.

3.0.9 – October 28th, 2022

  • Re-Fix: Concurrent login not working for some – Changed the hook to be called in wp_loaded.
  • Updated: Field description texts.
  • Bug Fixes

3.0.8 – October 19th, 2022

  • Fixed: Concurrent login not working due to callback not being called.
  • Updated translations.

3.0.7 – September 20th, 2022

  • Minor bug fixes.
  • Updated: Translations.

3.0.6 – September 14th, 2022

  • Changed: Plugin text for more clear view of the settings.
  • Changed: Plugin dependencies to be loaded on init instead of plugins_loaded hook.
  • Fixed: Previous settings getting overrided when deactivating and activating the plugin.
  • Updated: Translations.


  • Fixed: Idle message content not being updated due to tinyMCE.
  • Fixed: Reset not working when role based timeout was enabled and “disable inactive logouts” was checked.


  • Added: Settings page save using ajax.
  • Changed: Languages updated and removed where unnecessary.
  • Fixed: Timeout number showing same regardless of individual roles user setting.
  • Changed: Plugin deactivate now does not remove existing plugin settings.
  • Translations Updated.


  • Added: Popup modal localization settings on settings page.
  • Changed: Minor text issues.


Added: ina_popup_modal_text filter to change the popup modal texts.


  • Added: React version of inactive logout added for more robust performance.
  • Added: Security Enhancements
  • Fixed: Major bug fixes.
  • Removed: Login popup modal because it was preventing oAuth – also, due to new inactive logout logic. Maybe added later someday.


  • Bug fixes that relates with “Session Timeout” showing undefined message randomly.


  • Added: Option to disable login fields on popup and revert back to old style.


  • Added: Support for login form pop up ( contributed by MuhammadShabbarAbbas )
  • Changed: Main script for the countdown of idle activity to be non cachable for more robust results.
  • Added: Ability to change countdown timer after the intial time for idle threshold has reached.
  • Changed: Inactive idle time tracker is now set to 5 seconds.
  • Added: Debugger functionality added in settings page.
  • Fixes: Minor bug fixes.


  • Fixed: Deprecated “onReady” event warning.


  • Fixed: Inactive logout helper functions modified and made compatible for multisite when used alongside addon version.
  • Fixed: Major Bug Fixes


  • Removed: HTML output for popup modal in all pages.
  • Added: Ajax implementation for timeout popup.
  • Bug Fix: Multiple Browser tab support sometimes not working.
  • Bug Fix: 400 ajax call request after user has been logged out.
  • Refactored: JS scripts
  • Added: Continue without refresh button after logout to login again if users were logged out in the middle of editing a page or something. Only works in wp-admin section since adding this to frontend does not make sense.
  • Major bug fixes.


  • WP 5.5 support
  • Updated: Static resources to be cache friendly.
  • Updated: Select2 JS library.


  • Fixed: Mailpoet conflict resolver issue fixed. Inactive logout scripts and css not loading in mailpoet edit page backend.
  • Added: Filter “ina_logout_mailpoet_conflict_fix” incase conflict happens because of inactive logout scripts on mailpoet page use this filter to disable and avoid conflict.


  • Fixed: Constant issue where defined constant is showing errors.


  • Fixed: Minor JS bug fixes.
  • Added: Filter for applying custom post type pages for redirection “ina_free_get_custom_post_types”.
  • Admin notice fix.
  • Language Fix.
  • Updated: Select2 Library to 4.0.12


  • Fixed: Condition check for modal popup if inactive logout feature is disabled.
  • Fixed: Error
  • Fixed:
  • Added: Hooks
  • Changes: Minor bug fixes


  • Fixed: issue with multiple browser tab
  • Fixed: JS frontend builder issue for Divi – Not tracking when on frontend builder
  • Fixed: resetTimer method not being found and js crash
  • Fixed: (Active element) When editing in wp editor or iframe countdown is not implemented.
  • Changed: Javascript code refactored
  • Removed: goActive method which was unnecessary


  • Changed: Javascript methods changed to modular.
  • Added: Pro Tab added in settings page
  • Added: Hook priorities for ending conflicts
  • Changed: Helper function now into singleton
  • Added: SASS compilation
  • Removed: INA_VERSION constant
  • Bug Fix: Multi-Role fixes
  • Bug Fixes


  • Added: Auto logout when browser is closed – follow link in the description to download beta plugin.
  • Major bug fixes
  • Code refactor


  • Minor fixes


  • Minor fix where scripts are prioritized.


  • Filter Added: Two filters added for changing text when logout.
  • Removed debugger code from JS file.
  • Minor Bug Fixes


  • Bug Fix: Advanced Management Tab not showing save changes button.


  • Fix on minor conflict issues
  • Code Refactor
  • Text hint changes


  • Minor Changes
  • Code Refactor


  • Added: Works on IFRAME content now
  • Minor Changes
  • Code Refactor


  • Bug Fixes
  • Bug Fix: Showing HTML output in gravity forms custom post type page.
  • Code Refactor


  • Fixed a minor bug when saving settings in WP multisite network admin page.
  • Inactive setting menu hides when override option is checked for WP multisite network.


  • Major Bug Fixes
  • Added Full Support for Multisite: Users can override one setting for all sites
  • Added Finnish Translation. Thanks to daniel
  • Changed Translation text domain


  • Changes: Code Optimization
  • Major Bug Fixes
  • Locale Update


  • Fixed: Activation Error Feeds


  • Added “Disable Concurrent Logins For Certain Roles” in advanced management settings.
  • Bug Fix: Major fix that happened to update unselected user roles when trying to check a box.
  • Bug Fix: Custom URL redirect fields showing UI
  • 3 Major bug fixes
  • 5 Minor bug fixes


  • Minor Changes.


  • Added External Page Redirect. Select from “Redirect Page” and choose option “External Page redirect”. Available only for Basic settings.
  • Major Bug Fixes


  • WordPress 4.8 compatible

1.4.4 – 1.4.5

  • Removed Functionality: Removed auto logout added in v1.4.1 – 1.4.3 due to logout bug.
  • Minor Bug Fixes


  • Bug Fix: Fixed logout caused when plugin is activated.


  • Bug Fix: Fixed logout when plugin is deactivated.


  • Added: Logout session even after the browser is closed.


  • Change: Added constant login functionality for all browser tabs which means even if the user has multiple browser tabs opened. Until the user is active plugin will not show any popups or logout the user. The timeout will only show in the last active tab window.


  • Updated: Updated Sweedish translation.
  • Change: Small fix regarding php version compatibility.
  • Removed: Beta Version for advanced management


  • Security: Fixed a non-security though a security issue. Where a variable named system is changed because virustotal was showing it was a threat.


  • Updated: Spanish translation. Compatible to version 1.3. Thanx to Miguel Arroyo.


  • Updated: German translation. Compatible to version 1.3 Thanks to Roland Dietz


  • Updated: Swedish translation. Compatible to version 1.3 Thanks to @nijen


  • Added: Basic and Advanced configuration features
  • Minor Bug Fixes
  • Added: Multi Role based configuration
  • Added: Multi Role based redirection
  • Added: Multi Role based feature disable
  • Added: Multi Role based timeout limit
  • Added: Tab Layout for settings section


  • Changes: Classes changes in order to avoid any conflict with JS issues.
  • Added: Spanish translation. Thanx to Miguel Arroyo.
  • Updated: Swedish translation. Thanx to Björn Granberg.
  • Minor bug fixes.


  • Feature: Added Redirection to different page after logout functionality.
  • Bug: Minor bug fixes.


  • Bug: Activation Bug Fix


  • Corrected Swedish Translation. Thanks to @nijen


  • Corrected German Translation. Thanx to Roland Dietz.
  • Corrected Localization String in Helper Class.


  • Added Concurrent Login Functionality referencing from prevent concurrent logins by Frankie Jarrett
  • Fixed Translation Errors
  • Added Swedish Translation thanks to @nijen
  • Added Popup Solid Background Feature
  • Few Bug Fixes


  • Initial Release