This short tutorial shows you how to log out of WordPress.
If you’re 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.
If you are working on your site in your own device and in a secure environment, the easiest way to leave your site is to type a new URL into your browser, or by closing your browser without logging out.
If you’re working on a shared or public computer, or in an unsecured space, however, this can leave your account exposed. Someone could view your browser history, access your account and get into your WordPress Dashboard.
You can avoid security issues by logging off when you are done working on your site.
The tutorial below explains how to log out of WordPress and some additional ways to enhance your 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 you have a WordPress cookie set in your web browser, anyone using your computer can access your WordPress 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 web browser may be sending multiple requests to your server, depending on what kind of plugins you have installed, and if you are editing WordPress posts on your site (this is largely due to the WordPress autosave feature).
These frequent requests can add up to a large amount of resource usage if you leave your computer unattended throughout the day, especially if your site is hosted on a shared server. This is another reason why it is also recommended that you log out of your WP admin dashboard whenever you’re not actively working on your computer or website.
How To Log Out Of WordPress
At the far right-hand side of the Toolbar is the “Howdy, User” section with your Gravatar image.
If you hover your mouse over this section it displays your name and username, and links pointing to your “Profile Screen” and a “Log Out” link.
To log off WordPress, click on the “Log Out” link in this section …
Your WordPress session is now ended …
How To Terminate All Other User Sessions In WordPress
As an additional security prevention measure, WordPress lets you log out of all current sessions except your present 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 “Edit My Profile” …
Click on the “Log Out of All Other Sessions” button …
You will be logged out of everywhere else, except for your existing browser session …
WordPress Plugins – Log Out Options
In addition to the built-in log out functions explained above, you can enhance WordPress log out functionality using plugins.
Below are some of the log out functions you can enhance using WordPress plugins:
Do you do any online banking, or buy things online using credit cards or PayPal? Have you seen how, if you leave your computer unattended for a while and return some minutes later, 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 account.
WordPress gives you a similar functionality. You can automatically log out all inactive users with the WP Idle Logout plugin.
This is not the same as the default WordPress expired session notice that users will sometimes get when working on their site …
(Default WordPress expired session notice)
The WP Idle Logout 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 WP admin dashboard and in the “Add Plugins” screen (Plugins > Add New), enter “wp idle logout” in the keyword search field and click on the “Install Now” button …
Once the plugin has been activated, you can configure plugin settings from the Settings > Idle Logout menu …
The plugin lets you customize the following:
- Idle Time – specify how long (in seconds) that users can be idle before your site will log them out
- Idle Message – enter the message that will display to idle users, or leave this field blank to show the plugin’s default message (“You have been logged out due to inactivity”) …
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 inactive …
You will automatically be logged out after the set period of inactivity has transpired …
You can edit the time and add a custom message instead of the default …
Idle users will be redirected to your login page and your custom message will display to idle users above the login box …
(Custom message displayed to logged out users)
To learn more about this plugin, visit this site: WP Idle Logout
WP One Click Logout helps to avoid confusion and saves you having to log out of WordPress in two clicks, by installing a “Log Out” link right on the toolbar, making the log out link visible and allowing you to log out of WordPress with just “1” click …
To download and use the plugin, go here: WP One Click Logout – One-Click Logout Plugin For WordPress
This plugin 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 privileged individuals and the default WordPress settings for session cookies to expire is too long for your liking.
To download this plugin, visit this site: Protected Posts Logout Button – WordPress Plugin
This plugin adds a widget to your site 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 this plugin, visit this site: Login-Logout
Hopefully, you have found this tutorial on how to log out of WordPress useful.
"This is an awesome training series. I have a pretty good understanding of WordPress already, but this is helping me to move somewhere from intermediate to advanced user!" - Kim Lednum
Disclaimer: We have no association with WordPress or any WordPress-related products mentioned or reviewed on this site. We may derive affiliate commissions or financial benefits from the sale of any products and services advertised on our site. All product images are the copyright of their respective owners, comply with all license terms and agreements of use are being used solely for training and illustrative purposes.
Did you enjoy this article? If so, please share this article with others who could benefit from learning about WordPress using the social links below.