Skip to content
Sign in
Inactive Logout icon

Inactive Logout

Automatically log out idle users, set session lengths, control redirects, and limit how many logins are allowed at the same time.

Not scanned yet WordPress plugin 20k installs

Install in

No install steps yet

Follow the steps on the source page.

Inactive Logout helps protect WordPress accounts from unauthorized access, account sharing, and abandoned sessions. After activation, idle logout is enabled with a default 15-minute timeout, which you can change under Settings Inactive Logout.

The plugin tracks activity for logged-in users on both the backend and frontend. You can show a countdown warning, log users out immediately, or use Show Popup Message Only to display a Wake-Up reminder without ending the session. When that mode is enabled, the popup can also be shown to logged-out visitors by choosing To all Users for Show Popup Behaviour.

It runs for logged-in users in wp-admin and on the front end. Wake-up messages can also be shown to visitors who are not logged in when Popup Behaviour is set to all users.

Try it out: Demo

Why Inactive Logout

  • Prevent Unauthorized Access: Automatically close abandoned sessions on office, library, clinic, or shared computers.
  • Stop Account Sharing: Limit concurrent logins so paid members or team accounts can’t share credentials across multiple devices.
  • Meet Security & Compliance Standards: Enforce session and login policies that can help support GDPR, financial, or enterprise security workflows. Your overall compliance still depends on your full site configuration and processes.
  • Keep Users Informed, Not Frustrated: Warn users with a clean countdown before logging them out—or use a non-destructive “Wake Up” prompt to keep them engaged.

Features

Idle logout & Warnings

  • Flexible Timers: Set idle timeouts anywhere from 1 minute to 24 hours (1,440 minutes).
  • Graceful Countdowns: Display a modal countdown or subtle bottom-bar timer before ending a session—or log users out immediately.
  • Wake-Up Mode: Show a gentle reminder popup to idle users (or even logged-out visitors) without forcing a logout.
  • Full Message Control: Customize warning titles, idle alerts, button text, and post-logout notifications to match your brand voice.
  • Multisite Ready: Enforce global timeout policies across an entire WordPress Multisite network from one screen.

Limit Login & Session Control

  • Prevent Account Sharing: Cap the number of active sessions per user. When the limit is reached, choose to Logout Oldest, Logout All, or Block New logins.
  • Role-Based Rules: Apply custom timeouts, logout redirects, idle-logout exclusions, and login-limit enforcement by user role. Per-role and per-user login limit numbers are available in Pro.Ω
  • Custom Session Lengths: Override WordPress defaults with separate expiration rules for standard logins and “Remember Me” sessions.

Logout experience

  • Custom Redirects: Send logged-out users to a custom login page, security notice, or external URL automatically—or after they click OK.
  • Optional Logout Toasts: Enable a short notification after automatic or manual logout, with separate messages for idle and manual reasons. Toast notifications are off by default.

For developers

  • Translation-ready, with several translations included.
  • Hooks for extending redirect and concurrent-login behavior.

Upgrade to Inactive Logout Pro

Need granular user tracking, stricter security locks, or multi-tab precision? Inactive Logout Pro gives growing businesses and membership sites complete session visibility and control:

  • Stop Multi-Tab & Browser-Close Leaks: Automatically terminate sessions the moment a user closes their browser, with full synchronization across multiple open tabs.
  • Complete User Activity & Audit Logs: Track login/logout timestamps, session duration, IP address, browser, OS, user role, and real-time online status.
  • Instant Force Logout: Immediately kick out a single user, bulk-select accounts, or log out everyone on your site with one click.
  • Per-User Overrides & Account Locks: Set custom rules for individual VIP users, automatically lock accounts that hit login limits, and trigger instant email alerts.
  • Visual Modal Customizer: Style your timeout popups to match your site design—and remove WordPress’s clunky default logout confirmation screen.

Pro Version Features

Inactive Logout Pro is the paid add-on for Inactive Logout. It Adds:

  • Session Sync Across Tabs & Browsers: When an idle user is logged out, their other WordPress sessions are ended too. Open tabs in other browsers are redirected on their next session check, and admin-forced logouts are announced to the user’s open tabs.
  • Browser Close Logout: Log users out shortly after they close their browser or tab, with a configurable grace timer of up to 10 minutes.
  • Complete User Activity History: Track login and logout time, active session duration, IP address, browser, operating system, role, and online status. Filter, export, and print session history from the admin dashboard.
  • Mini Track Sessions Panel: Review recent users, roles, active sessions, last login, IP address, and online status directly from the settings screen, with filters and a link to the full history report.
  • Instant Force Logout: Log out a single user, selected users, or all users from the Users screen. Pro also adds a “Recent User Logins” dashboard widget.
  • Per-User Overrides & Role/User Login Limits: Configure custom timeout, redirect, and login-limit rules for individual users. User-based settings take precedence over role-based settings, and a frontend shortcode lets allowed users control their own timeout.
  • Account Locks & Email Alerts: Lock accounts that reach the login limit, notify admins and users by email, customize the blocked/unlocked messages, and give legitimate users a self-service unlock form.
  • Visual Modal Customizer: Style the timeout and wake-up popups to match your site design, and hide WordPress’s native session-expiration popup when needed.
  • Scheduled & Targeted Logouts: Run a daily logout by time, excluded days, and roles. Disable idle logout for mobile users, selected pages, or selected post types.
  • Admin Controls & Maintenance: Import/export settings, enable diagnostic logs, set automatic history retention, and delete the Pro history table on deactivation if needed.
  • WP-CLI Support: Log out a specific user or all users, and trigger inactive-session cleanup from the command line.

Explore Inactive Logout Pro

Enjoying Inactive Logout?

If this plugin helps keep your site safe, please consider leaving a 5-star review—it helps other WordPress site owners discover the plugin!

Written by Joobi from the project's own listing. See the source page

idle logoutlogin limitlogoutsecurityuser redirection
29 Nov 2026
Version 3.7.0 released. Not scanned yet.

3.7.0 – November 27th, 2026

  • Added: Optional iframe activity tracking so embedded videos and other framed content keep the session active.
  • Added: Session Length settings to control login and Remember Me session durations from the Idle Logout page.
  • Changed: Internal helpers split into focused classes; the legacy Helpers facade remains for addon compatibility.
  • Removed: The ina_change_login_exp_time filter; session length is now controlled from the settings page.
  • Added: Change UI navigation to Vertical.
  • Fixed: Toast Logout Notification Issue.
  • Added: Login Limits now owns concurrent login modes: Logout Oldest, Logout All, and Block New.
  • Added: Concurrent User Limit renamed to Login Limit.
  • Changed: Enforcement now honors the global toggle and the per-role Limit Logins setting for every login attempt.
  • Changed: Role-based settings now use a responsive card grid instead of tables.
  • Added: Last Active user column and the shared __ina_last_active_session timestamp.
  • Changed: Last Active now displays relative times such as “10 secs ago”, “1 minute ago”, and “2 hours ago”.

3.6.5 – October 1st, 2026

  • Added guard clause for Modal Element wrapper.

3.6.4 – October 1st, 2026

  • Added Guards suggested by @hfigarella

3.6.3 – September 8, 2026

  • JS Package update.

3.6.2 – June 4th, 2026

  • Version bump for WordPress v7 Support.

3.6.1 – December 9th, 2025

  • Minor Changes.

3.6.0 – October 27th, 2025

  • Fixed stored XSS vulnerability in role-based redirect URL field.
  • Added nonce and capability checks for better CSRF and privilege protection.
  • Sanitized and validated all redirect and custom URL inputs using esc_url_raw() and wp_http_validate_url().
  • Improved internal data sanitization and validation for role-based and general settings.
  • Minor code cleanup and consistency fixes.

3.5.5 – September 17th, 2025

  • Fixed: If roles were set in random order role based setting timeout field took the precedence value giving fuzzy results.

3.5.4 – August 13th, 2025

  • Minimum WordPress version is now 6.6.

3.5.3 – June 18th, 2025

  • Added: Toast message turn on and off setting.
  • Changed: Toast message by default is off.

3.5.2 – June 17th, 2025

  • Fix: “Timeout Countdown Period” stayed at the defined value unless enabled countdown option was enabled.

3.5.1 – June 15th, 2025

  • Added: Option for no role assigned users in role based settings.
  • Added: Toast notification after logout redirection.
  • Changes: Idle countdown bar fixes.
  • Fixed: Instant logout if disable countdown is set.
  • Optimized: User Query calls for advanced settings.

3.4.13 – June 12th, 2025

  • Fixed: All roles not showing in role based setting.

3.4.12 – June 3rd, 2025

  • Fixed: Inactive logout settings page crash when there are huge number of posts and pages.
  • Refactor: Removed unused code.
  • Refactor: Concurrent Login checks

3.4.11 – April 16th, 2025

  • Minor bug fix related to date format conversion.
  • Bump version for WordPress 6.8 compatibility.

3.4.10 – February 6th, 2025

  • Fix: is_plugin_active function not including required file.

3.4.9 – February 5th, 2025

  • Added: Compability fix with WLMS
  • Updated: Shows different text now when user is actively engaging when bottom countdown is enabled.

3.4.8 – January 21st, 2025

  • Updated: Render method update.
  • Updated: Requires WordPress version 6.2
  • Fixed: Logged out popup message not showing when disable popup countdown is enabled.
  • Bug Fixes related to logout and redirect not working for roles that are not administrator.

3.4.7 – December 19th, 2024

  • Changed: Styling
  • Added: User based tab.
  • Minor bug fixes

3.4.6 – November 6th, 2024

  • Documentation link added.

3.4.5 – November 2nd, 2024

  • Added: Filter hook.

3.4.4 – September 1st, 2024

  • Localizations updated for French, German and Spannish.
  • Updated localization issues contributed by https://wordpress.org/support/topic/improve-i18n-issue-based-on-3-4-2/

3.4.3 – August 27th, 2024

  • Added hook that can be triggered after concurrent logout.

3.4.2 – August 19th, 2024

  • Compatibility with openID generic SSO plugin logout. Needs pro version on inactive logout though.

3.4.1 – August 17th, 2024

  • Fixed: CSP blob issue – Removed workerTimers from script.

3.4.0 – August 11th, 2024

  • DB Options optimization
  • Refactor code

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.

3.0.5

  • 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.

3.0.3/3.0.4

  • 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.

3.0.2

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

3.0.1

Added: ina_popup_modal_text filter to change the popup modal texts.

3.0.0

  • 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.

2.0.2

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

2.0.1

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

2.0.0

  • 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.

1.9.9

  • Fixed: Deprecated “onReady” event warning.

1.9.8

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

1.9.7

  • 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.

1.9.6

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

1.9.5

  • 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.

1.9.4

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

1.9.3

  • 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

1.9.2

  • Fixed: Condition check for modal popup if inactive logout feature is disabled.
  • Fixed: Error https://wordpress.org/support/topic/fatal-error-uncaught-error-34/
  • Fixed: https://wordpress.org/support/topic/setting-message-text/
  • Added: Hooks
  • Changes: Minor bug fixes

1.9.1

  • 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

1.9.0

  • 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

1.8.0/1.8.2

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

1.7.9

  • Minor fixes

1.7.8

  • Minor fix where scripts are prioritized.

1.7.7

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

1.7.6

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

1.7.5

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

1.7.4

  • Minor Changes
  • Code Refactor

1.7.3

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

1.7.2

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

1.7.1

  • 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.

1.7.0

  • 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

1.6.3

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

1.6.1

  • Fixed: Activation Error Feeds

1.6.0

  • 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

1.5.1

  • Minor Changes.

1.5.0

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

1.4.7

  • 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

1.4.3

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

1.4.2

  • Bug Fix: Fixed logout when plugin is deactivated.

1.4.1

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

1.4.0

  • 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.

1.3.5

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

1.3.4

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

1.3.3

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

1.3.2

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

1.3.1

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

1.3.0

  • 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

1.2.1

  • 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.

1.2.0

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

1.1.3

  • Bug: Activation Bug Fix

1.1.2

  • Corrected Swedish Translation. Thanks to @nijen

1.1.1

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

1.1.0

  • 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

1.0

  • Initial Release
17 Jan 2017Listed on Joobi from WordPress.org.

Follow this listing's changes (Atom feed)