How To Fix “WordPress Keeps Logging Me Out” Error

WordPress keeps logging out is one problem that can be quite frustrating. If you are currently facing this issue, we understand how you feel.

Your site suddenly starts logging you out of your Admin Dashboard when you try to use it, leaving you unable to make changes to your site, and usually without a clue why this is happening.

Although there are many things that could cause this error, the source can usually (somewhat easily) be traced, and the problem fixed.

In this article, we will take you through the common causes of “WordPress keeps logging me out” error, and steps you can take to fix it.

How To Fix “WordPress Keeps Logging Me Out” Error

In This Article

  1. What Causes WordPress Keeps Logging Me out Error
  2. How to Fix This Error

What Causes WordPress Keeps Logging Me out Error

When you login to WordPress, it sets a browser cookie with which it authenticates your login session. If there are any errors with this cookie, such as a difference between the URL set in the cookie and the URL with which you are accessing your site, WordPress will be unable to authenticate your session and will thus log you out. Usually, you will see a message like “your session has expired”.

How To Fix WordPress Keeps Logging Me out Error

The steps to fix this error usually involve working with cookies, cache or your site URL.

1. Check Site URL

In many cases, this problem occurs because of a simple error in site URL settings.

To access your site URL settings, go to Settings > General.

In the General Settings page, check to ensure the WordPress Address (URL) and Site Address (URL) are exactly the same.

Fix WordPress website URL

If there are any differences, this would very likely be the cause of your issue.

For example, if one uses “https://” and the other uses “http://”, or one has www in front and the other doesn’t, then correct this so that they are both the same, and access your site.

However, if you are unable to access your dashboard, you can make these changes by accessing your site files with FTP, and editing your wp-config file to include the following information (insert this above the line that says “That’s all, stop editing! Happy blogging”):

define('WP_HOME','http://yoursite.com);

define('WP_SITEURL','http://yoursite.com);

2. Clear Browser Cookies to Resolve WordPress Keeps Logging Me out Problem

Since the log out issue is related to cookies stored in your browser, one simple solution that could resolve this issue is clearing your cookies.

Go ahead and clear cookies for your browser, and then login to your admin panel to see if the issue is resolved.

If yes, awesome! Otherwise, read on.

3. Clear Browser and Site Cache

Clearing your browser cache is another solution that could fix login issues. This should be pretty easy to do, depending on the browser you are using.

After successfully clearing your browser cache, login to WP to check if this error is resolved. If not, try clearing your site cache if you are using a caching WordPress plugins. When done, login to your site. Hopefully, this fixes your error.

4. Ensure WordPress Sites Are Permitted to Save Cookies

In some cases, this error might occur because your web browser cannot accepting cookies. When this happens, WordPress will be unable to save your session cookies, which means you will be logged out time and again.

To fix this error in chrome, click the 3 dots that open up your menu options and click Settings.

Chrome browser settings

In the settings page, scroll down and click Advanced.

chrome cookies settings - advanced

In the advanced options, look for Content Settings and click on it.

click on content settings

Check to see if Allow Site to Save and Read Cookie Data option is enabled. If it isn’t, enable it.

To do this in Firefox, click on Settings (the gear icon in the top-right). Next, click Privacy and Security, scroll down to the “Cookies and Site Data” section, and ensure Accept Cookies and Site Data is selected.

Now login to your site to see if you have resolved the “WordPress keeps logging me out” error.

5. Disable Plugins

This is the last step to try if all else have failed. In some cases, an issue from one of your plugins could be causing this issue, and you can track down the source of the error by disabling plugins. So, the best approach to this is to disable all active plugins. Next start with activating on one by one until you find which one is causing problem.

Read this article to learn how to do this: How to Disable WordPress Plugins Using FTP.

Frequently Asked Questions

What causes the “WordPress Keeps Logging Me Out” error?

The most common causes of this error are issues with browser cookies, caching plugins, incorrect login credentials, conflicts with plugins or themes, and server-related issues.

How can I fix the “WordPress Keeps Logging Me Out” error?

You can try clearing your browser cookies, disabling caching plugins, resetting your login credentials, deactivating conflicting plugins or themes, and contacting your hosting provider to check for server-related issues.

How do I clear my browser cookies?

The method for clearing cookies depends on the browser you are using. You can usually find the option to clear cookies in the browser’s settings or preferences.

How do I disable caching plugins?

You can disable caching plugins by going to the Plugins section in your WordPress dashboard, locating the caching plugin, and deactivating it. If the plugin is not in use, you can also delete it.

How do I reset my login credentials?

You can reset your login credentials by going to the WordPress login page, clicking on the “Lost your password?” link, and following the prompts to reset your password.

How do I deactivate conflicting plugins or themes?

You can deactivate conflicting plugins or themes by going to the Plugins or Appearance section in your WordPress dashboard, locating the conflicting plugin or theme, and deactivating it.

What should I do if none of these solutions works?

If none of the solutions works, you may want to consider contacting your hosting provider or hiring a WordPress expert to help you resolve the issue.

How Can You Use This Information?

You should now have no problem logging into and using your WordPress site. The steps covered in this guide provide the best fixes for the login issue you were encountering. If you are facing more WordPress errors you can always contact us or check our other WordPress tutorials and guides on our blog.

However, this error in WordPress can be quite hard to trace and fix in some cases. If something like that happens for you, you may decide to have one of our developers to check your web site. Request our service now and we will get to work on it immediately.

More Resources:

 This post was written by Mesheal Fegor

Mesheal Fegor is a Web/WordPress Developer and technical writer. His WordPress help articles have been featured on Kinsta and other sites. Mesheal holds a master's degree in computer science. His writing focuses on technical WordPress issues, ranging from core WordPress problems, to issues with WooCommerce, and more.

Last edited by: FixRunner Team