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

How To Log Out Of WordPress

For a white label version of this tutorial visit WPTrainingManual.com.

How To Log Out Of WordPress

In this tutorial, you will learn how to log out of your WordPress site securely.

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

Normally, you would just exit your site by typing in a different URL into your web browser, or by closing your web browser altogether without logging out. This works fine if you are working on your website on your own computer in a secure environment.

If you’re working on a shared or public computer or in an unsecured space, however, this could compromise your site’s security. Someone could access your account,  get into your admin area and wreak havoc just by viewing your browser history.

To avoid leaving your account unprotected and your site exposed to tampering or hijacking, it’s best to log off when you are done working on your site.

This step-by-step tutorial shows you how to log out of WordPress and some additional ways to enhance the logout feature.

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 and come back later, WordPress will recognize the cookie and you will not be asked 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 admin section.

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

Also, while you remain logged into your site’s admin area, you could be sending multiple requests to your server, depending on what kind of plugins you have installed and if you have left one or more of your post or page editing screens open (this is largely due to the WordPress autosave feature).

Leaving your computer unattended with your site open sending our frequent requests can use up server resources over the course of a day, especially if your site is hosted on a shared server. For this reason, it is also recommended that you log out of your admin area if you’re not actively working on your site.

How To End Your Session And Log Out Of WordPress

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

Hover over this section with your mouse and it will expand to display your name and username, with links pointing to your Profile Screen and a ‘Log Out’ link.

Click on the ‘Log Out’ link to terminate your session and log out of your WordPress site.

Click on the Log Out link to log out of your site.

You will be logged out of WordPress.

You are now logged out.

How To Log Out Of All Other User Sessions In WordPress

As an added security measure, WordPress lets you log out of all current sessions except your current browser session. 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 out of all sessions, go to the “Howdy, User Name” section and click on Edit My Profile. (Note: you can also get there by going to Users > Your Profile).

Edit My Profile link.

Click on the Log Out of All Other Sessions button.

Users > Your Profile > Log Out of All Other Sessions button.

You will be logged out everywhere else, except for your existing browser session.

You are now logged out everywhere else.

Extending Log Out Options With WordPress Plugins

In addition to the built-in logout function of WordPress, you can extend your site’s logout capabilities using certain plugins.

Here are some plugins you can use to extend your site’s logout functions:

Inactive Logout

Inactive Logout

If you do any banking or shopping online, you may have noticed that an “expired session” message will display on your web browser if you leave your computer unattended for a while.

Sites that offer online banking, credit card payments or financial services generally log out users after a certain period of inactivity because inactive users pose a security threat to online accounts. Someone could hijack the session and access the user’s account and financial details.

WordPress lets you do the same. You can automatically log out all inactive users on your site by installing this 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 Inactive Logout plugin allows you to specify how long a user can be inactive on your site before their session is automatically expired.

To install the plugin, go to your WordPress admin dashboard’s ‘Add Plugins’ screen (Plugins > Add New), type in “inactive logout” in the keyword search field, then click the ‘Install Now’ and ‘Activate’ buttons.

Install Inactive Logout in the Add Plugins screen.

After activating the plugin, go to the plugin’s settings menu (Settings > Inactive Logout) to configure it.

Configure the plugin’s settings from Settings > Inactive Logout

The plugin lets you configure and customize a number of settings, including:

Inactive User Logout Settings screen.

With this plugin, you can also:

Warning message window with a custom message and continue button.

Tip: To test your plugin’s settings while you continue working on your site, open up a private browser session (in incognito mode), navigate to your site, and let the inactive period transpire.

Going incognito lets you test your idle logout settings while you continue working on your site.

Log into your WordPress site in ‘incognito’ mode and let your current session go inactive for the period of time you’ve specified in your settings.

Incognito Mode message.

Depending on the settings you choose, you will either see a ‘Session Timeout’ warning giving you the option to stay signed in or get logged off.

Session Timeout message.

You will be automatically logged out after the specified period of inactivity has transpired.

Session timeout – logged out message.

To learn more about this plugin, go here: Inactive Logout

Protected Posts Logout Button

Protected Posts Logout Button

Protected Posts Logout Button is another WordPress plugin that automatically adds a logout button to your password-protected content.

This plugin is useful if you want to share password-protected content with users and the default WordPress cookie expiration settings are too long for your liking.

Protected page with logout button.

Users can log out immediately after viewing your private content. You can also add an optional alert message informing users that they have logged out.

To learn more about this plugin, go here: Protected Posts Logout Button

Login-Logout

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 your users are logged in or out of your site.

This plugin lets users see if they are logged in or logged out of your site.

To learn more about this plugin, go here: Login-Logout

***

Congratulations! Now you know how to log out of your WordPress site. Hopefully, this tutorial has also shown you that you can extend the functionality of the WordPress logout feature using plugins to do things like:

Logout options help to ensure the security of your website.

***

***

"Your training is the best in the world! It is simple, yet detailed, direct, understandable, memorable, and complete." Andrea Adams, FinancialJourney.org

We are not affiliated, associated, sponsored, or endorsed by WordPress or its parent company Automattic. This site contains affiliate links to products. We may receive a commission for purchases made through these links.

For a white label version of this tutorial visit WPTrainingManual.com.