WordPress For Non-Techies: Free WordPress Tutorials – WPCompendium.org

How To Log Out Of WordPress

This quick tutorial shows you how to log out of your WordPress site.

If you’re brand new to WordPress, the information below will help you if you or someone you know is having difficulties working out how to log out of the WordPress administration area.

Normally, if working on a site or blog in your own computer device in a secure environment, the easiest way to leave your site is by entering some other URL into your browser window, or just close the browser without logging out.

If you’re working on a shared or public computer, or in an unsecured space, however, this presents a security risk. Someone may be able to gain access to your account by viewing the browser history and get back into your admin area.

You can avoid security issues by logging out when you are done working.

The simple tutorial below shows you how to log out of WordPress and some additional things you can do with the WordPress logout function.

Note: When you sign into your WordPress site, a “cookie” is stored in your web browser. This cookie allows WordPress to remember who you are. If you leave your site for a while but return later, WordPress will recognize the cookie and not ask you to log in again.

Important: The cookie cannot tell WordPress who is actually logged into your site. If a WordPress cookie has been set in your web browser, anyone using your computer can access the admin pages of your site.

To prevent this from happening (especially when using a public or shared computer) click on the Log Out link and WordPress will delete the cookie from your web browser. To reset the cookie just log into WordPress again.

Also, while you are logged into the WordPress admin area, your web browser could be sending multiple requests to your server, depending on what kind of plugins you have installed, and if you are in the process of editing pages on posts on your site (this is mainly due to the WordPress autosave feature).

Frequent server requests can add up to a large amount of resource usage if you leave your computer unattended over the course of the day, especially on a shared server. For this reason, it is also recommended that you log out of WordPress if you’re not working on your website.

How To End Your WordPress Session

At the far right-hand side at the top of your screen is the “Howdy, User” section with an image of your Gravatar.

Hover over this area with your mouse and it will expand with your name and username, and links to your “Profile Screen” and a “Log Out” link.

To terminate your WordPress session, click on ”Log Out” …

You will be logged out of your site …

How To End All Sessions In WordPress

As an extra security measure, WordPress lets you log out everywhere except the one in your present browser. This is useful if, for example, you’ve left your account logged in at a public computer, or if you’ve lost or misplaced your phone.

To log off all sessions in WordPress, go to the “Howdy, User” section and click on “Edit My Profile” …

Click “Log Out of All Other Sessions” …

You will be logged out of everywhere else, except for your existing session …

WordPress Log Out Plugins

In addition to the built-in log out functions shown above, you can extend the WordPress log out capabilities with plugins.

Below are just some of the log out functions you can enhance when signing out of WordPress:

WP Idle Logout Plugin – Automatically Log Out Idle Users

Have you noticed how all financial sites offering online banking, credit card payments or financial services log out users after a certain period of inactivity? This is because inactive users pose a security threat to online accounts. Someone could hijack the session and access your account.

With WordPress you can do the same thing. You can automatically log out all inactive users using the WP Idle Logout plugin.

This is not the same as the default WordPress ”Session Expired” notice that users will sometimes get when working on their site …

(Default WordPress ”Session Expired” notice)

The WP Idle Logout plugin lets you specify how long a user can be inactive on your site, before their session is automatically expired, giving you precise control of this event

To install the plugin, go to your WordPress admin dashboard and in the “Add Plugins” screen (Plugins > Add New), type “wp idle logout” in the search field and click on the “Install Now” button …

Once the plugin has been activated, you can configure plugin settings by selecting the Settings > Idle Logout menu …

The plugin lets you configure the following options:

You can test your settings by opening up a private browser session …

From your incognito browser window, log into WordPress and then letting your current session go idle …

Users will be automatically logged out after the set period of inactivity has occurred …

Edit the time interval and add a custom message to suit your needs …

Idle users will be redirected to your login page and your custom message will display to inactive users above the login box …

(Custom message to inactive users)

Go here to download and use this plugin:

WP One Click Logout – WordPress Plugin

This plugin helps to avoid confusion and eliminates the “2-click” logout process by installing a “Log Out” link right on the admin toolbar, making the log out link visible and allowing users to log out of WordPress with just “one” click …

To download and use this plugin, go here:

Protected Posts Logout Button

Protected Posts Logout Button automatically adds a logout button to your password-protected content.

This allows users to log out immediately after viewing private information. You can also add an optional alert notification informing users they have logged out …

This is a great plugin if you need a password-protected page to share information with clients and the default WordPress settings for session cookies to expire is too long for your liking.

Visit this site to download this plugin:

Login-Logout Plugin

Protected Posts Logout Button adds a widget to your site that displays either a “login” or “logout” link and additional information depending on whether your users are logged into your site or not …

To download the plugin, go here:

Hopefully, you have found this tutorial on how to log out of WordPress useful.


"I have used the tutorials to teach all of my clients and it has probably never been so easy for everyone to learn WordPress ... Now I don't need to buy all these very expensive video courses that often don't deliver what they promise." - Stefan Wendt, Internet Marketing Success Group