This short tutorial guides you on how to log out from your WordPress site.
If you’re new to 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, when working on a site in your own device in a secure environment, the easiest way to exit your website is to enter a different URL into your browser window. Or just close the web browser without logging out.
If you’re working on a public school or shared computer, or in an unsecured space. However, this can leave your account exposed. Someone may be able to gain access your account just by viewing your browser history and go back to your WordPress Dashboard.
You can avoid leaving your account unprotected by signing off when you are done working on your site.
The quick tutorial below will show you how to log out of WordPress and provides additional information about ways to extend the WordPress log out function.
Note: When you log into your WordPress site, a “cookie” is stored in your web browser. The cookie allows WordPress to remember who you are. If you leave your site for a while and return later, WP will remember the stored cookie and will not require your to login again.
Important: The cookie cannot tell WordPress, who is logged into your site. If a WordPress cookie is set in your web browser, anyone using your device can access your WordPress dashboard.
To stop this from happening (especially when using a public or shared work computer) click on the “Log Out” link and WP will delete the cookie from your web browser history. To reset the cookie just log into WordPress again.
Also, while you are logged in the WP admin area, your web browser will be sending infrequent requests to your web server. Depending on what plugins you have installed. If you are editing WP pages or posts on your site (this is due in large part to the WP autosave feature).
These frequent server requests can add up to a considerable amount of server resource usage if you leave your WP signed-in over the course of the day, especially on a shared server. This is another reason we recommended that you log out of WordPress when you’re not actively working on your website.
How To Terminate Your WordPress Session
On the far right-hand side of the Admin Toolbar is the “Howdy, User” section with an image of your Gravatar.
If you hover over this panel with your mouse, it will expand with your username and name, with links pointing to your “Profile Screen” and a “Log Out” link.
To close your WordPress session, click on the “Log Out” link in this section …
You are now logged out of your site …
Logging Out Of All Other Sessions In WordPress
As an extra security measure, WordPress lets you log out everywhere except the one in your existing browser. This is useful if, for example, you have left your account logged in on a shared computer, or if you’ve misplaced or lost your phone.
To log off all sessions in WordPress, go to the “Howdy, User” section and choose the “Edit My Profile” link …
Click “Log Out of All Other Sessions” .
You will be logged out of everywhere else, except for your present browser session.
WordPress Plugins – Log Out Options
In addition to the native log out functions explained above, you can extend WordPress log out capabilities using plugins.
Below are just some of the logout functionality you can extend by installing WordPress plugins:
Have you noticed how all financial sites offering online banking, financial services, and/or credit card payments log out users after a certain period of inactivity? This is because inactive users pose a security threat to online accounts. Hackers could hijack the session and access your account.
WordPress lets you do the same. You can automatically log out all inactive users on your site using the WP Idle Logout plugin.
his is not the same as the default WP “Session Expired” notice that users will sometimes get when working on their site.
(Default WordPress “Session Expired” notice)
This plugin allows you to control how long a user can be inactive on the website before their session automatically expires. The plugin gives you exact control of this event
To install WP Idle Logout, go to your WordPress admin dashboard and in the “Add Plugins” screen (Plugins > Add New). Type “wp idle logout” in the search by keyword field and click on the “Install Now” button.
Once the plugin has been activated, you can configure plugin options by selecting the Settings > Idle Logout menu.
The plugin lets you configure the following:
- Idle Time – specify how long (in seconds) that users can be idle before the system will log them out
- Idle Message – enter a message that will display to idle users, or leave this field blank to display the plugin’s default message …
You can test the plugin by opening up a browser session in incognito mode …
In your private browser window, log into WP and then letting your current session go idle for the period you have specified in your settings.
You will be automatically logged out after the specified period of inactivity has passed.
Edit the idle time and add your own custom message.
Idle users will be redirected to your login page, and your custom message will appear to inactive users above the login box.
(Custom message displayed to logged out users)
To download and use this plugin, go here: WP Idle Logout – Automatically Log Out Idle Users
This plugin helps to avoid confusion and improves the “2-click” logout process. It does this by installing a “Log Out” link right on the toolbar, making the logout link visible and allowing you to log off WordPress with just “one” click.
Visit this site to learn more about using the plugin: WP One Click Logout
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 message informing users they have logged out.
Use this plugin if you want to share private information with clients and the default WordPress settings for session cookies to expire is too long for your purposes.
To download the plugin, visit this site: Protected Posts Logout Button – WordPress Plugin
The Protected Posts Logout Button replaces the default WordPress meta widget with a custom widget. This widget displays either a “login” or “logout” link and additional information depending on if the wp user is logged into your site or not.
Visit this site to download the plugin: Login-Logout
Hopefully, you have found this tutorial on how to log out of WordPress useful.
As Always Hit me up if you need any help with WordPress!
Comments? Questions? Feel free to post a comment below and share this information with your friends.