Usually, the WordPress Keeps Logging Out problem is caused by a cookie issue. That WordPress attempts to configure to authenticate a login session. It might potentially be a problem with some mismatched WordPress URL settings.
Whatever the source, here’s how to troubleshoot and resolve the WordPress Keeps Logging Out issue. In addition, this article will discuss many methods for quickly resolving this issue.
Why does WordPress Keeps Logging Out?
To understand why WordPress keeps logging you out, you must first grasp the WordPress login procedure. To authenticate a login session, WordPress places a cookie on your browser for that URL to authenticate a login session. This cookie is positioned and that you have saved in your settings.
WordPress will be unable to authenticate your session if you visit from a URL, and that’s not the same as the one you’ve got in your WordPress settings.
The WordPress URL and the Site Address are two separate URLs, as seen in the picture of the settings above (one includes www. and the other does not).
Also Read: Top 29 Best WordPress Alternatives
How Do You Fix Your WordPress Is Logging Me Out Problem?
Working with cookies, WordPress cache, or your site URL is typically required to resolve this issue.
1. Remove Your Browser’s Cache
The “WordPress Keeps Logging Me Out” your browser might cause this problem as the page may have been cached in your browser, and it is attempting to authenticate the session using an expired cookie. If this is the case, clearing your browser’s cache will resolve the problem.
Remove Your Browser’s Cookies
Similarly, Cookies might cause the problem because of a cookie that has already been saved on your browser for that site. The error can occur if the cookie has expired, But your recent login accidentally overwrites it.
Fortunately, you may resolve the issue by clearing your browser’s cookies. The following are the steps to clear the cookies in the browsers.
Go to the upper right-hand corner of Chrome and then click the three vertical dots to open the chrome browser drop-down menu,
Choose More Tools > Clear Browsing Data from the drop-down menu and select the “Clear Browser Data” option in the Chrome browser.
Select a time towards the top of the pop-up to determine how far You should clean back data. Then, select All time from the drop-down box to remove everything.
Then, check the boxes for Cookies and other site data and Cached pictures and files. You may also tick the Browsing history box if you like.
Select the Clear data option. Depending on how much data has to be wiped, the procedure may take a few minutes to complete.
Launch the Safari browser and go to the Preferences menu to clear cookies in Safari.
Then, select the Privacy tab, followed by the Manage Website Data option.
To remove all cookies from Safari, click the Remove all option.
Launch the Firefox browser and click the hamburger settings symbol in the upper right-hand corner. Then, from the drop-down menu, choose Preferences.
A new tab with settings will appear; on the left-hand side of the menu, select Privacy & Security. Next, scroll down to Cookies and Site Data and select the Manage Data option.
To erase the cookies, click the Remove All option in the pop-up that appears. Then, click the Save Changes button.
In Microsoft Edge
Open your browser and click on the horizontal dots in the upper-right corner. Then choose History> Clear Browsing Data.
Make a time range decision that fits your scenario in the Time range drop-down box. For example, consider how long the “WordPress Keeps Logging Out” problem has been going on. Select a time that is at least long.
If you just had difficulty for a few minutes, the default Last Hour choice should be sufficient. Otherwise, you can select another time, such as All Time.
Cookies and other site data, as well as Cached Images and Files, should be checked. You may also erase your browser and download History if you want to. After that, click the Clear Now option.
Verify Your Browser’s Settings
If it doesn’t work, the issue might be caused by your browser’s cookie settings. They must be updated if they are configured to compel cookies to expire. In this case, the methods outlined below should suffice for the browser you’re using.
Click the menu button in the top right corner of Google Chrome Browser and click on Settings.
A new tab will be opened with many setting choices of the browser then, scroll to the bottom of the page and choose Advanced.
A list or a tab with advanced settings will appear dynamically, then click on Site Settings from the Privacy and Security section.
Find the Cookies and site data settings in the Permissions section. If it does not have the label Allow site to save and access cookie data beneath it and only reads Blocked, click on it.
Otherwise, this isn’t the cause of the “WordPress Keeps Logging Out” problem. You can go to the following stage for more troubleshooting in this scenario.
Under the Cookies and site data section, click the toggle button next to the Blocked label. Once you’ve done so, it should immediately switch and alter to enable cookie saving.
In the Safari browser, click on Preferences from the menu in Safari.
Navigate to the Privacy tab. Then, next to the Cookies and website data option, uncheck the Block all cookies box. Click it if it’s checked. The modification will be saved automatically.
Check to see whether the issue with WordPress logging you out has been addressed. If it persists, uncheck this box if you do not want your browser to keep cookies. Then, next to Website tracking, uncheck the Prevent cross-site tracking box. If so, click on it.
Open Firefox and select the gear icon from the usual new tab page. It’s the page that lists your top sites. You may find the symbol in the upper right corner of the page.
A new tab with settings will appear; select the Privacy & Security option under the left-hand menu. Next, select the Standard option in the Enhanced Tracking Protection section. Continue troubleshooting if this option is already chosen.
In Microsoft Edge
Launch Microsoft Edge browser and go to Settings by clicking the hamburger symbol at the top right.
Locate the Cookies and site data button under the Site Permissions tab. Click on it if it has the phrase “Blocked” below it. On the other hand, if it reads “Allowed,” keep troubleshooting.
Toggle the Allow sites to save and read cookie data in the browser. This modification is saved automatically.
Check to see whether the issue with WordPress logging you out has been addressed. If it’s already enabled, make sure the Block third-party cookies toggle button is turned off. At this point, if the “WordPress Keeps Logging Out” issue is still occurring and is becoming an annoyance, click the Add button next to Allow.
In the text pop up a dialogue box, enter the URL of the site that is causing the “WordPress Keeps Logging Out” problem. Then click the Add button.
Also Read: Best Guide on Top 50 WordPress Themes for Artists
Delete the Cache from Your WordPress Site
If you’ve gotten this far and the problem remains, it’s not your browser’s problem. However, your WordPress site’s cache might be the source of the “WordPress Keeps Logging Out” but, don’t worry, you still have a few choices to do to overcome the issue.
You can clear your site’s cache with a few clicks. However, the procedure varies based on your server and whether or not you use a caching plugin. Check the docs for any caching plugins you’re using. Otherwise, contact your host for instructions on deleting the cache for your site and server.
Check Your WordPress Site Address
WordPress login session cookies are occasionally not stored because the URL provided in the cookie does not match the site address. Check your WordPress settings to ensure that the same Site Address (URL) and WordPress Address (URL) boxes.
Log in to your site and navigate to Settings > General. Then, when needed, update the addresses and double-check that they are right.
For example, a “www” prefix may be present when it shouldn’t be, and also, if you have an SSL certificate set up on your domain, make sure there is an “https” prefix. Finally, if you made any changes, go to the bottom of the page and click Save Changes.
Updating WordPress Addresses Manually
If that doesn’t answer the “WordPress Keeps Logging Out” problem, you’ll need to change these URLs manually. First, you must change the wp-config.php file to accomplish this. After that, you can connect to your WordPress site using SFTP.
Once you’ve created an SFTP connection to your site, download and open the file, you can also right-click on the file and choose View/Edit from the menu if you’re using FileZilla.
Above the “happy blogging” line, type the following code:
Make sure to replace “http://example.com” with your domain name and also double-check that you’re using “HTTP” or “HTTPS” correctly. If you have an SSL certificate installed on your Website, use the “HTTPS” prefix.
There is also no “www.” prefix in the preceding example. However, if your site has one and is set up to utilize it that way in your domain’s DNS settings, be sure to mention it.
Finally, save the file and re-upload it to your site’s main folder or else if you’re using FileZilla, return to the client and click Yes when requested to replace the updated version of the file on your server.
Disable and Re-Enable WordPress Plugins
If you’ve reached this stage and haven’t resolved the “WordPress Keeps Logging Out” bug. There might be a problem with one of the plugins you’re using when a plugin is required to authenticate the session using a cookie.
But it is not set up correctly, or there is a cookie issue, the WordPress login timeout error might occur. To investigate this possible problem, you must manually disable your plugins.
Go to /wp-content/ and rename the plugins folder using SFTP. To minimize future confusion, use a name that is easy to remember.
Check if the “WordPress Keeps Logging Out” issue has been resolved. If the problem has been resolved, rename the plugins folder to its original name. Reload the page in your browser after that.
Navigate to Plugins > Installed Plugins and activate the plugins one by one until the issue reappears.
You may delete the plugin causing the “WordPress Keeps Logging Out” issue as you know what it is, but if you can still access your site, go back to the Plugins tab and click Deactivate next to the mentioned issue plugin then, next to the Activate link, click the Delete button.
If you don’t have access to your site, you can rename the plugins folder using SFTP, then change it back to its original name, then on your browser, reload your page, and remove the plugin.
If you need to use the plugin’s capabilities right away, you may now look for a suitable replacement. Otherwise, you may report the problem and seek to resolve the issue by contacting the plugin’s creator.
It’s incredibly inconvenient when WordPress constantly logs you out. Fortunately, the WordPress session timeout, which is causing the “WordPress Keeps Logging Out” problem, maybe swiftly be fixed.
Make sure, in particular, that:
- Remove Your Browser’s Cache
- Remove Cookies from Your Browser
- Verify Your Browser’s Settings
- Delete the Cache from Your WordPress Site
- Check Your WordPress Site Address
- Disable and Re-Enable WordPress plugins
Hope this article was helpful for you in resolving the issue of ‘WordPress keeps logging users out. The steps mentioned above are the best to resolve the issue.