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

How To Log Out Of WordPress

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

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

Normally, if you are working on your WordPress web site in a secure environment and in your own computer, the easiest way to leave your site is to type a new URL into your browser, or simply close your web browser without logging out.

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

You can protect your account by logging off when you are done working on your site.

The step-by-step tutorial below explains how to log out of WordPress and provides additional information about things you can do with the WordPress logout function.

Note: When you log 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 cookie has been set in your web browser, anyone using your computer can access your WP dashboard.

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 your WordPress admin section, your browser could be sending frequent requests to your server, depending on what kind of plugins you have installed, and if you are editing posts on your site (this is largely due to the WordPress autosave feature).

If you leave open the WordPress dashboard and leave your computer for a while, WordPress will continue to send requests to the server. For this reason, it is also recommended that you log out of WordPress if you’re no longer working on your website.

Logging Off WordPress

At the far right in your administration area is the “Howdy, User” section with an image of your Gravatar.

If you hover over this area with your mouse it expands to display 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 are now logged off the site …

How To End All Other User Sessions In WordPress

As an added security measure, WordPress lets you log out of all current sessions except your existing browser session. This is useful if, for example, you have 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 select the “Edit My Profile” link …

Click “Log Out of All Other Sessions” …

You will be logged out of all other sessions, except for your existing session …

WordPress Plugins – Log Out Options

In addition to the built-in logout functions explained above, you can enhance the WordPress log out capabilities using plugins.

Let’s review just some of the functions you can enhance by installing WordPress plugins:

WP Idle Logout Plugin

Do you do any online banking, or buy things online using credit cards or PayPal? Have you noticed how, if you don’t do anything inside the browser for a while and come back to it some minutes later, you will see a message displayed on the web browser informing you that your session has “expired”? This is because inactive users pose a security threat to online accounts. Someone could hijack the session and access the user’s financial details.

With WordPress you can do the same thing. You can automatically log out all inactive users with 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)

This plugin allows your site administrator to specify how long a user can be inactive on the site, before their session is automatically expired, giving you precise control of this event

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

Once the plugin has been activated, you can configure the plugin’s options from the Settings > Idle Logout menu …

The plugin lets you configure the following settings:

You can test your settings by opening up a browser session in incognito mode …

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

Users will be automatically logged out after the specified period of inactivity has transpired …

Edit the time interval and add a custom message …

Inactive users will be redirected to your login page and your custom message will be displayed to idle users above the login box …

(Custom message to inactive users)

To download and use the plugin, go here:

WP One Click Logout – WordPress Plugin

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

For more information about using this plugin, visit this site:

Protected Posts Logout Button – WordPress Plugin

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

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

This is a great plugin if you need to have a password-protected page to share information with clients and the default WordPress cookie expiration setting is too long for your purposes.

To download this plugin, go here:

Login-Logout WordPress Plugin

This plugin replaces the default WordPress meta widget with a custom widget that displays either a “login” or “logout” link and additional information depending on whether users are logged in on your site or not …

To download and use the plugin, go here:

As you can see, WordPress not only has a native log out function, but through the use of simple plugins, you can also extend the functionality of the log out feature for different situations.


"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