Technology Subset

How to Fix WordPress Keeps Logging Out Issue Easily (2022)? – Technology Subset


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.

Pic Showing Dashboard Settings For Urls

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.

In Chrome:

Chrome Logo
Step 1

Go to the upper right-hand corner of Chrome and then click the three vertical dots to open the chrome browser drop-down menu,

Step 2

Choose More Tools > Clear Browsing Data from the drop-down menu and select the “Clear Browser Data” option in the Chrome browser. Go To More Tools &Amp; Select Clear Browsing Data

Step 3

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.

Step 4

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.

Check Box Cookies &Amp; Other Site Data &Amp; Cached Images

Step 5

Select the Clear data option. Depending on how much data has to be wiped, the procedure may take a few minutes to complete.

In Safari

Safari Logo
Step 1

Launch the Safari browser and go to the Preferences menu to clear cookies in Safari. Pic Showing Go To Safari Browser &Amp; Choose Preferences

Step 2

Then, select the Privacy tab, followed by the Manage Website Data option.

Pic Showing, Go To Privacy Tab &Amp; Select Manage Website Data

Step 3

To remove all cookies from Safari, click the Remove all option.

Pic Showing Select 'Remove All Button' To Remove All The Cookie Data

In Firefox

Firefox Logo
Step 1

Launch the Firefox browser and click the hamburger settings symbol in the upper right-hand corner. Then, from the drop-down menu, choose Preferences.

Pic Showing Go To Preferences In The Settings

Step 2

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.

Pic Showing Go To Privacy &Amp; Security &Amp; Scroll To Cookies And Site Data Then Select Manage Data

Step 3

To erase the cookies, click the Remove All option in the pop-up that appears. Then, click the Save Changes button.

In Microsoft Edge

Microsoft Edge Logo
Step 1

Open your browser and click on the horizontal dots in the upper-right corner. Then choose History> Clear Browsing Data.

Pic Showing Click On Horizontal Dots On The Right Side &Amp; Go To History≫≫Clear Browsing Data

Step 2

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.

Pic Showing Choose The Time Rage Of Browsing Data To Clear

Step 3

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.

In Chrome

Chrome Logo

Step 1

Click the menu button in the top right corner of Google Chrome Browser and click on Settings.

Image Showing Go To Google Chrome Settings

Step 2

A new tab will be opened with many setting choices of the browser then, scroll to the bottom of the page and choose Advanced.

Image Showing Click On Advanced Button In The Bottom Of The Settings Tab

Step 3

A list or a tab with advanced settings will appear dynamically, then click on Site Settings from the Privacy and Security section.

Image Showing Click On Site Settings In Privacy &Amp; Security Section

Step 4

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.

Image Showing In Site Settings Click On Cookies &Amp; Site Data

Step 5

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.

Pic Showing Toggle The Blocked Button Below The Cookies &Amp; Site Data

In Safari

Safari Logo

Step 1

In the Safari browser, click on Preferences from the menu in Safari.

Image Showing Go To Preferences In The Safari Browser

Step 2

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.

Image Showing Go To Privacy Tab &Amp; Uncheck Block All Cookies Box

Step 3

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.

Image Showing Uncheck The Prevent Cross-Site Tracking

In Firefox

Firefox Logo

Step 1

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.

Image Showing Click On Gear Icon In The Browser To Go To Settings

Step 2

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.

Image Showing Select Standard In Enhanced Tracking Protection

In Microsoft Edge

Microsoft Edge Logo

Step 1

Launch Microsoft Edge browser and go to Settings by clicking the hamburger symbol at the top right.

Image Showing Go To Browser Settings

Step 2

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.

Image Showing Go To Cookies &Amp; Site Data If It Shows Blocked

Step 3

Toggle the Allow sites to save and read cookie data in the browser. This modification is saved automatically.

Image Showing Toggle The Allow Sites To Save And Read Cookie Data

Step 4

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.

Image Showing Click On Add Next To Allow

Step 5

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.

Image Showing Add The Errored Url &Amp; Click On Add

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.

Step 1

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.

Image Showing Check For Urls In General Settings Of Dashboard

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.

Step 1

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.

Image Showing Open File Using Filezilla

Step 2

Above the “happy blogging” line, type the following code:

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

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

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.

Step 3

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.

Image Showing Saving The File &Amp; Click On Yes

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.

Step 1

Go to /wp-content/ and rename the plugins folder using SFTP. To minimize future confusion, use a name that is easy to remember.

Step 2

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.

Step 3

Navigate to Plugins > Installed Plugins and activate the plugins one by one until the issue reappears.

Image Showing Activation Of Plugins

Step 4

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.

Image Showing Deactivating The Plugins

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.

CONCLUSION

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:

  1. Remove Your Browser’s Cache
  2. Remove Cookies from Your Browser
  3. Verify Your Browser’s Settings
  4. Delete the Cache from Your WordPress Site
  5. Check Your WordPress Site Address
  6. 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.



Source link