WP Inactive Logout

WP Inactive Logout makes your WP account secure from snoopers, friends to protect your data by assuring auto log out system within a certain defined time. This will help you keep safe from any users using same machine to access your account in case you are away and forgot to logout and kept your site logged open.

Updated: May 21, 2019

Simple but works efficiently. Nothing much to explain on plugin use. As its simple to use. You can find inactive settings under settings menu in admin dashboard.

Some Feature Highlights of WP Inactive Logout

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.

In order to style dialog boxes you can use css classes. Also, works in frontend view as well.

Using WP Inactive Logout

Filter Hooks

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: GIST FILE

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

After you have installed this plugin browse through settings > inactive logout.

Idle Timeout – This option lets you choose when to log out after inactivity.

Idle Message Content – Message to show when you are inactive and logged out. Modify according to your needs.

Popup Background – Customize popup background according to need in order to hide your data even after logout.

Disable Timeout Countdown – There is a timeout countdown after you are inactive. System will give you a 10 seconds countdown before logging you out. If you have checked this option then you will be directly logged out.

Show Warn Message – This feature will allow you to only show warn message that you are inactive for certain defined minutes.

Concurrent Logins – This feature will let you only login at one place at a time. If you have logged in from another location then automatically previous location is logged out.

In a world without walls and fences, who needs windows and gates ? No gates, no windows bt apache inside! #dev Love for #Unix #Linux #Apple. Interests in coding, music, creative design, Linux and Apple products.

Hi there! Thanks for this awesome pluggin. One simple issue : I have WP setup with MSSQL. When I try to save, I get multiple errors about not the field “Option_Value” not allowing NULL values. Is it possible to force an empty string instead of a null value?

Can the countdown of 10 secs be changed to a user selectable amount of time, say 30 seconds? 10 seconds seems awful fast, if a person isn’t near the screen, but in the room. This would be a feature added to the plugin.

This is a great plugin! One issue I’ve seen though is with a pc that has gone to sleep? When I wake the PC (much longer than the inactive time setting), it does not show the modal box. The site just appears as it did, although I think the session data may be destroyed. Previous Nonces are invalid as well. The page has to be refreshed manually. Is it possible to make the plugin check “on wake” and show the modal box? Thanks!

First of all great job creating this plugin. I have been testing a few others and this one seems to work as I intended for my platform.

However, I would like to be able to disable the timer for each user individually. Is there an easy way to tweak the plugin-code so that timer can be disabled not only for ‘User Role’ but also for ‘User Name’?

Indeed it is a nice plugin and I was using it with comfort but… I use themeco pro theme for my website and realized that inactive logout contradicts with my theme. When I try to edit my page I cant see any content on the page just the upper and lower menu althouth the rest of the configuration parameters are there. If you have any clue what may cause this problem I appreciate otherwise I cant activate this plugin.

Thanks for your work, and this looks promising for our site. I wonder if it is possible to have the timeout apply to, or not apply to, specific accounts. For example, if I am working away taking photos and writing posts, I could easily hit the timeout and so I could extend it; i’m working in a relatively secure location. But on the other hand, there’s an account used on the sales floor, a public location, that really needs a short lockout time. Thanks!

So do you mean functionality that could extend users to extend time ? But for disabling timeout setting for certain user roles is only possible at the moment. However, i am exactly not sure on what you exactly need. Could you summarize it and send me an email via support section. Thanks.

We have Installed this Plugin which looks promising for Idle User log out. We have ‘Network Activated it’ But we have noticed that we are unable to save changes in one of our Sub-Site. In fact, there is no option to Save Changes under Settung-> Inactive Logout. Can you please provide a solution to fix this Issue.

HI DpEN, With your modification “5.4” to “5.2” your plugin work very fine, a great thanks to you, inactives users are going to have a new surprise 😉 Do not sorry for late reply, i was on hollydays for 2 weeks. Best regards and thanks again. Danielle

Hi Dp, Thank for your reply. My boss dont want to upgrade our old server (php 5.3.8). I try few plugin for logout after inactivity. Only your (inactive-logout) do exacty what i expect ! others are very approximative and not usefull. I’m not able to transform php code in way that your plugin work on php 5.3.8. I just want to logout users on WP multisite after 3 minutes of inactivity. If you can help me. Thanks. Danielle

Its bad that you cannot upgrade your server. Like i said recommend using php version 5.6 equivalent or above. For you a temporary solution is to edit plugin source code file.

Edit file inactive-logout/src/inactive-logout-main.php on line 198. Edit “5.4” to “5.2”. Save and it should work for you. Lemme knw through mail from https://deepenbajracharya.com.np/say-hello/ if it works for you. Thanx.

Hi, Your plugin work powerfull. But i have a problem, on my test server with php 5.5.38 work fine, but on my job server with php 5.3.8 (older) i can’t activate your plugin who require a higher versus of php. I cannot ugrade to php 5.5.8 my job server. Have you a solution ? Best regards. Danielle

My site has blocked your comment as spam so i did not see your comment in my mailbox so i did not reach out to you sooner.. Sorry for that.. Is there anyway you can upgrade your server to atleast php version 5.6 ? You should not use php less that since its going to be deprecated soon. If any problems you can contact me via contact me section.. Thanx