Tag - Automatically

How to Automatically Log out Idle Users in WordPress


Do you want to automatically log out idle users in WordPress? As a security-conscious site admin, you may want to force inactive users to login again.

Banking websites and apps already use this technique to avoid unauthorized users from accessing accounts or hijacking them. You can also implement this functionality on your own WordPress website to improve security.

In this article, we will show you how to automatically log out inactive users in WordPress. Once logged out, users will be asked to log in again to resume what they were doing.

How to automatically logout inactive or idle users in WordPress

The first thing you need to do is install and activate the Inactive Logout plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, simply go to Settings » Inactive Logout page to configure the plugin settings.

Settings page for Inactive Logout plugin

First, you need to enter the time after which a user will be automatically logged out. You can enter the time in minutes and make sure it is not too short or too long.

After that, you can enter a message that you want to be displayed to inactive users.

Below the message field, you will find more plugin options to change logout functionality. The default settings would work for most websites, but you can change them if you want.

Inactive users timeout settings

Popup Background – You can enable this option if you want to change the background color of screen when a user session times out. This option will cover the user’s browser screen and will keep the contents hidden from prying eyes.

Disable Timeout Countdown – This option will remove the countdown warning and will directly logout idle users.

Show Warn Message Only – If you don’t want to use auto logout feature, then check this option. It will only display the warning message and will cover the screen if you have popup background option checked.

Disable Concurrent Logins – This option will restrict your WordPress users from concurrent logins. This means they will not be able to use the same account to log in at the same time from different devices.

Enable Redirect – By default, the plugin displays a log in popup and does not redirect users. You can enable this option to redirect users to any other page you want.

After you have reviewed and changed settings, don’t forget to click on the ‘Save settings’ button to store your changes.

Setting up different timeout settings based on user roles

If you want to set timeout rules based on user roles and capabilities, then you can do so under the ‘Advanced Management’ tab on the plugin’s settings page.

First, you need to select the user roles that you want to set up differently than global settings. After that, you will be able to select timeout in minutes, redirects, or even disable timeout settings for that user role.

Multi-role idle user timeout settings

Once you are satisfied with the settings, click on the ‘Save settings’ button to save your changes.

To see the plugin in action, you can login to your website and do nothing for the time duration that you have set in plugin settings. After that, you will see a countdown timer popup appear.

Timeout countdown

You can click on the continue button to resume working without expiring the session.

Users who don’t click on the continue button will be logged out and they will see the login screen.

Login popup

Add More Security with Two Step Authentication

Now one problem with this approach is that many users save their passwords using a password manager or their browser’s built-in password storage feature.

This means that their login popup will already have their username and password fields filled in. Any person can just click on the login button to access their account while they are away.

Login fields already filled in

You can make unauthorized access more difficult by adding two-step verification to the WordPress login screen.

It basically requires users to enter a unique one-time password generated by an app on their phone. For detailed instructions, see our guide on how to add two-factor authentication in WordPress.

We hope this article helped you learn how to automatically log out idle users in WordPress. You may also want to see our ultimate WordPress security guide for more tips on securing your WordPress website.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Automatically Log out Idle Users in WordPress appeared first on WPBeginner.



Source link

How to Automatically Schedule Content Updates in WordPress


Have you ever tried scheduling a content update in WordPress? If you did, then you likely discovered that there is no easy way to schedule changes to a published post or page. In this article, we will show you how to easily schedule content updates in WordPress and improve your editorial workflow.

Scheduling content updates in WordPress

Why Schedule Updates for Posts and Pages in WordPress?

By default, WordPress allows you to schedule posts to be published at a specific time. However, you cannot schedule content updates for a post or page that is already published.

Many bloggers and website owners frequently make changes to their old blog posts, so they can keep their article up to date by adding new information.

Business websites may want to make scheduled changes to appear at a certain time. For example, when you are running a sales event or limited time promotional offer.

Normally, you will have to make changes at the exact time you want them to appear. Your changes become live as soon you hit the update button. Some site owners save their changes as a draft and then copy / paste them at the right time.

Wouldn’t it be nice if you can schedule your content updates just like you would schedule new posts and pages?

Let’s take a look at how to easily schedule content updates in WordPress to improve your workflow and keep your old content fresh.

Scheduling Content Updates in WordPress

The first thing you need to do is install and activate the Tao Schedule Update plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, you need to visit Posts » All Posts page in the WordPress admin area. From here you can locate the post where you want to schedule changes and then click on the ‘Scheduled Update’ link.

Schedule an update

The plugin will create a draft copy of your original post and open it in the post editor. You can now make changes to your post.

Once you are done editing, click on the date and time next to the ‘Publish’ option.

Click on date to set the schedule

This will show the date and time settings. You need to enter the date and time when you want your changes to go live and then click on the ‘Schedule’ button at the top right corner of the screen.

Set up schedule

Your changes will now be scheduled and will be published automatically at the date and time you entered.

Scheduling Content Updates in Classic Editor

If you are using the older classic editor, then you will see a new meta box in the right column labeled ‘Scheduled Update’

From here you can select the date and time and when you want to publish the changes. After that, you can schedule your changes by clicking the ‘Save’ button under the publish meta box.

Viewing and Managing Scheduled Post Updates

You can manage your scheduled post updates from the Posts » All Posts screen. All scheduled updates will be highlighted with their set release date.

Managing your scheduled post and page content updates

From here you can delete or modify a scheduled update without affecting your original post. You can also immediately publish an update by clicking on the ‘Publish now’ link.

We hope this article helped you learn how to properly schedule content updates in WordPress. You may also want to see our tips on growing your website on a shoestring budget.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Automatically Schedule Content Updates in WordPress appeared first on WPBeginner.



Source link