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.

Please check changelog to see what is added from version 1.3.0


  • 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.
  • Choose to use concurrent logout functionality derived from prevent concurrent logins by Frankie Jarrett. Thumbs up here too !
  • 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 redirects.
  • Clean UI
  • Simple to use
  • Multi browser tab support: Means that logout will not happen even if the user has multiple browser tabs opened and is active in certain browser tab.
  • Multisite Support: Override all sites with one setting.


Upgrade to Inactive Logout Pro for:

  • Auto browser close logout after 2 minute of active session.
  • Override Multiple Login priority
  • Disable inactive logout for specified pages according to your need. Check this Documentation for additional post type support.
  • Multi-User configurations ( Coming Soon )

NOTE: Premium plan users will always be given highest priority over free plan users.


  1. add_filter(‘ina__redirect_message’, ‘callback’ );
    For changing “You have been logged out because of inactivity. Please wait while we redirect you to a certain page…” this message.
    Reference: See here

  2. add_filter(‘ina__logout_message’, ‘callback’ );
    For changing “You have been logged out because of inactivity.”
    Reference: See here

  3. External Page Redirect For Custom post type pages.
    For allow of support of custom post type in page redirections use.
    Reference: See here

See the Inactive Logout homepage for further information. Contact Developer for those who need to write plugins.

There’s a GIT repository too if you want to contribute a patch. Please check issues. Pull requests are welcomed.

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

Screenshot (schermate di esempio)

  • 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


9 Settembre 2020
Ottima idea per lo sviluppatore. È perfetto, quindi non di 5 stelle, ne do 6
Leggi tutte le recensioni di 86

Contributi e sviluppo

“Inactive Logout” è un software open source. Le persone che hanno contribuito allo sviluppo di questo plugin sono indicate di seguito.


“Inactive Logout” è stato tradotto in 2 lingue. Grazie ai traduttori per i loro contributi.

Traduci “Inactive Logout” nella tua lingua.

Ti interessa lo sviluppo?

Esplora il Codice segui il Repository SVN iscriviti al Log delle Modifiche. Puoi farlo tramite RSS con un lettore di feed.

Changelog (registro delle modifiche)


  • 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