If you're experiencing the "WordPress keeps logging me out" mistake message frequently, you've come to the right place.

Typically, this upshot occurs considering of a problem with the cookie that WordPress tries to set to authenticate a login session. Information technology could also be an issue with some WordPress URL settings that are mismatched.

Regardless of the cause, hither's how to troubleshoot and fix the WordPress session timeout problem.

one. Clear Your Browser's Cache

The "WordPress keeps logging me out" effect could originate from your browser. The page may be cached in your browser and could exist trying to authenticate the session through an expired cookie.

Immigration your browser's cache volition fix the issue if this is the instance. For details, cheque out How to Clear Your Cache for All Major Browsers.

2. Clear Your Browser'southward Cookies

Similarly, the upshot could exist with the cookie that'south already saved in your browser for the site. If the cookie has expired merely mistakenly overrides your recent login, it tin crusade the error.

Fortunately, you can clear your browser'due south cookies to set up it.

Chrome

Footstep 1

In Chrome, get to the pinnacle, correct-hand corner and click the More button. It looks similar a hamburger icon: Three vertical lines or dots.

Step 2

Then, in the drib-down menu, select More Tools > Clear Browsing Data.

The Chrome browser with the
Go into Chrome'south settings and clear browsing information

Pace 3

Toward the top of the pop-up, select a fourth dimension range for how far back data should exist cleared. To delete everything, select All time from the drop-downwards box.

Step 4

Then, check the Cookies and other site data equally well as the Cached images and files boxes. Optionally, you tin can also cheque the Browsing history option.

Chrome settings
Check the box to clear cookies and cached images

Step five

Click the Clear data button. Depending on how much data needs to exist erased, it may accept a few minutes to cease the process.

Safari

Stride ane

To clear cookies in Safari, open the browser and select Preferences from the card.

Safari menu
Open up the Preferences option in Safari

Stride 2

Next, click the Privacy tab and and so on the Manage Website Information button.

Safari preferences
Click the Manage Website Data push button in the privacy settings

Step 3

Click the Remove all push to delete all cookies from Safari.

Safari privacy settings
Click the push to remove all cookies from Safari

Firefox

Pace i

After opening Firefox, click the hamburger settings icon on the tiptop, right-hand corner. Select Preferences from the drop-downwards carte du jour.

Firefox menu drop down list
Select the Preferences option from the menu icon

Step two

A new tab volition open with settings. Click on Privacy & Security in the menu on the left. Curl downwards to the Cookies and Site Data department and click the Manage Data button.

Firefox preferences
Click the Manage Data button

Step iii

In the pop-upwardly that appears, click the Remove All Shown button to delete the cookies. And so, click on Save Changes.

Firefox
Delete all cookies by clicking the Remove All Shown push button

Edge

Step i

Open up your browser and click the ellipsis at the elevation, right-hand corner. Then, go to History > Clear Browsing Information.

Edge menu settings
If you click to articulate your browsing data y'all can too delete cookies

Footstep 2

In the Time range driblet-down box, make a pick that works for your state of affairs. Remember near how long the "WordPress keeps logging me out" result has been happening. Cull a time frame that'south at least equally long.

For example, if you take just experienced the trouble for a few minutes, the default Last Hour option should work. Otherwise, y'all tin cull a different range including All Fourth dimension.

Clear browsing data pop-up
Cull a fourth dimension range where all cookies in that time will be deleted

Stride 3

Adjacent, be sure the boxes for Cookies and other site data equally well every bit Buried Images and files are checked. You can optionally cull to too select to clear your browsing and download history.

One time that'southward done, click the Clear At present button.

3. Check Your Browser'south Settings

If that doesn't piece of work, the problem could originate from your browser's cookie settings. If they're prepare up to forcefulness cookies to expire, they need to be inverse.

In this kind of situation, the steps below should do the trick for the type of browser y'all're using.

Chrome

Footstep 1

In Chrome, click the menu icon in the summit, right corner and select Settings.

ALT: Chrome menu
Choose the Settings selection in the menu

Step 2

A new tab will open with a lot of options. Curl downwardly to the lesser of the page and select Advanced.

Chrome's settings page
Click the Advanced button at the bottom of the settings page

Step three

A listing of additional options volition dynamically appear. Click on Site Settings under the Privacy and security department.

Chrome advanced settings
Going into the Site Settings volition let you adjust how sites salvage cookies

Stride 4

Under the Permissions section, find the Cookies and site data settings. If information technology doesn't have the label Let site to relieve and read cookie data underneath and it says Blocked, then click on it.

Otherwise, this isn't what's causing the "WordPress keeps logging me out" issue. In this instance, you lot tin can skip downwards to the next section for further troubleshooting.

Chrome site settings
If cookies are blocked, you need to change your site settings

Pace v

Click the toggle push adjacent to the Blocked label nether the Cookies and site information section. Once you do that, information technology should automatically switch and modify to permit the saving of cookies.

Chrome cookies and site data options
Click the toggle button to let sites save cookies

Safari

Stride 1

In Safari'southward carte, choose the Preferences option.

Safari menu
You can check your browser'south settings by choosing Preferences

Stride ii

Go to the Privacy tab. Then, next to the Cookies and website data choice, brand sure the Block all cookies box isn't checked. If it'due south checked, click information technology. The change will automatically be saved.

Safari privacy settings
Be sure Safari isn't blocking cookies

Step 3

Check if the "WordPress keeps logging me out" consequence is gone. If it persists, you can bank check this box again if y'all don't desire your browser to save cookies.

Then, next to Website tracking, make certain the Forbid cross-site tracking isn't checked. If it is, click on information technology.

Safari privacy settings
Endeavour unchecking the pick to forestall cross-site tracking

Firefox

Step 1

Open Firefox and click the gear icon that can be found on the default new tab page. Information technology'south the page with your top sites listed.

The icon is located toward the top, right corner of the page.

A new tab page in Firefox
Open up a new tab and click the gear icon

Step 2

A new tab volition open with settings. And so, go to the Privacy & Security tab in the menu on the left.

Subscribe At present

Become to the Enhanced Tracking Protection section and select the Standard option.

If this option is already selected, continue troubleshooting.

Firefox privacy settings
Be certain the Standard choice is selected for Enhanced Tracking Protection

Edge

Pace 1

With your browser open, click the hamburger icon at the top, right and get to Settings.

Edge settings menu
Access the settings to modify how Edge saves data

Step two

Get to the Site Permissions tab and find the Cookies and site data button. If it has the word "Blocked" underneath information technology, click on it.

On the other hand, if it says "Allowed," continue troubleshooting.

Edge site permission settings
If cookies and information are blocked, click on the option to change it

Step 3

Click the toggle button next to Permit sites to save and read cookie information. This change is automatically saved.

Site permission settings page
Make certain Edge is allowing cookies to be saved

Step 4

Bank check if the "WordPress keeps logging me out" event is fixed. Or if information technology'southward already enabled, make sure the toggle button for Block third-party cookies is disabled.

At this bespeak, if yous bank check to see if the "WordPress keeps logging me out" error is nevertheless happening and it's still an annoying nuisance, click the Add together button next to Let.

Edge settings page
Try adding the specific site with the error to the list of allowed sites

Step 5

Enter the address of the site that'southward giving you problem with the "WordPress keeps logging me out" error into the text field. Then, click Add together.

Add a site pop-up
Blazon in your site and click the Add button

4. Clear Your WordPress Site's Cache

If yous take fabricated information technology this far and the effect persists, your browser isn't to blame. Only, your WordPress site's cache may be the cause of the "WordPress keeps logging me out" issue.

Don't worry, though… At that place are still a few means to prepare it!

You can clear your site'due south enshroud in a few clicks, but the process differs depending on your host as well as if you're using a caching plugin.

If y'all're using a plugin for caching, bank check its documentation.

Otherwise, check with your host for the directions to articulate the cache for your site and server.

If you're using Kinsta to host your site, clearing your site's cache is straightforward and yous can check out How to Clear WordPress Enshroud On Your Site for details.

5. Double Check Your WordPress Site Address

Sometimes, WordPress login session cookies aren't saved because the URL divers in the cookie doesn't match the site address.

To fix this, bank check your WordPress settings and make sure the Site Accost (URL) and WordPress Address (URL) fields are the same.

Step 1

Log into your site and go to Settings > General in the menu. Then, update the addresses every bit needed and make certain they're correct.

Sometimes, information technology could be that there's a "world wide web" prefix when there shouldn't be. Too, cheque that there'southward an "https" prefix if y'all have an SSL certificate installed on your domain.

If you made whatsoever adjustments, click Salve Changes at the bottom of the page.

WordPress admin settings page
Make sure your WordPress URLs match and are right

Manually Update WordPress Addresses

If that doesn't work to resolve the "WordPress keeps logging me out" error, you'll demand to update these addresses manually.

To do this, you need to edit your wp-config.php file.

You can use SFTP for this and the details can be institute here: How to Use SFTP to Connect to Your WordPress Site.

Stride 1

One time you lot have established a connection with your site using SFTP, download and open the file. Or, if you're using FileZilla, yous can click on the file, then right-click on information technology and select View/Edit from the list.

The FileZilla client with a file being selected, then right-clicked
You can edit a file straight from FileZilla

Step ii

To a higher place the "happy blogging" line, enter the lawmaking beneath:

          ascertain('WP_HOME','http://your-site.com'); ascertain('WP_SITEURL','http://your-site.com');        

Be sure to change "http://your-site.com" to your actual domain. Also, cheque that your utilise of "HTTP" or "HTTPS" is right.

If you have an SSL certificate installed for your site, so you should cull the "HTTPS" prefix.

For details, check out How to Redirect HTTP to HTTPS in WordPress.

In the example to a higher place, there's also no "www." prefix. If your site includes one and is set upward to be used that way in your domain's DNS settings, then be sure to add it.

Step 3

Save the file and upload it back to your site in the main folder. Or, if you're using FileZilla, and so go back to the customer and click Yes when you're prompted to overwrite the new version of the file to your server.

File has changed prompt in FileZilla
Click Yes when asked if you want to upload the changed file

6. Disable and Re-Enable WordPress Plugins

If yous have reached this point without success in resolving the "WordPress keeps logging me out" fault, at that place may be an issue with 1 of the plugins you're using.

When a plugin needs to authenticate the session with a cookie, just it'due south not ready up properly or there's an upshot with the cookie, information technology can cause the WordPress login timeout error.

To troubleshoot this probable cause, you need to manually disable your plugins. For details, bank check out How to Disable WordPress Plugins (No Access to WP-Admin).

Step 1

Using SFTP, go to /wp-content/ and rename the plugins binder. Cull a proper noun that's clear to avert hereafter confusion.

Step 2

Refresh your site and check if the "WordPress keeps logging me out" issue has been resolved.

If it's fixed, rename the plugins binder dorsum to its original name. And then, refresh the page in your browser.

Footstep 3

Go to Plugins > Installed Plugins and activate the plugins one-by-1 until the mistake resurfaces.

Installed plugins page
Actuate each plugin until the WordPress session timeout fault occurs

Step four

Now that yous know which plugin is causing the "WordPress keeps logging me out" issue, you can delete it.

If you still accept access to your site, stay on the Plugins page and click Deactivate under the listed problem plugin. Then, click the Delete link that appears adjacent to the Actuate link.

Plugins page
Deactivate and delete the trouble plugin

If you don't have access to your site, yous tin can use SFTP to rename the plugins folder again, and then change information technology back to its original name after that.

Side by side, refresh your site in your browser and delete the plugin.

Now, you can search for a suitable alternative if you urgently need to use the features the plugin offers. Otherwise, you can contact the plugin's author to report the upshot and asking a prepare.

7. WordPress Keeps Logging Me Out Yet

If you're withal experiencing the "WordPress keeps logging me out" issue, you lot tin can manually extend the time for which a user is remembered when they cheque the "Recollect Me" box.

This is also helpful if the default isn't long enough or the timing was previously inverse and it no longer works for yous.

Manually Update How Long Y'all're Remembered

Stride 1

Create a child theme with a functions.php file if you haven't washed this already. You can cheque out How to Create a Child Theme in WordPress (Extended Guide) for details.

In your child theme'south functions.php file, add this filter:

          add_filter( 'auth_cookie_expiration', 'keep_me_logged_in_for_1_year' );  part keep_me_logged_in_for_1_year( $expirein ) {     return YEAR_IN_SECONDS; // i year in seconds }        

Information technology may exist important to note that the above filter will remember a user for ane year. If y'all adopt to change this, here are other possible options which you can use to supplant "YEAR_IN_SECONDS":

  • DAY_IN_SECONDS – Users are remembered for only one day.
  • WEEK_IN_SECONDS – This means one week.
  • MONTH_IN_SECONDS – This is for users to be remembered for one calendar month.

Keep in mind that if yous're developing locally, letting your user account be remembered for one year may not be a huge security threat if your estimator is secure and you use an antivirus app. But, it'due south not secure for production sites or staging sites.

You also may non want to make the change for users to be remembered for 1 day since this may cause y'all to run across the "WordPress keeps logging me out" effect all over over again.

Consider your options and choose the value that works for you.

Is WordPress logging you out? What a elevate! But hey, you lot can fix this annoying issue using one of these methods! 🚪🔑 Click to Tweet

Summary

When WordPress keeps logging you lot out, it'southward extremely frustrating.

Fortunately, the WordPress session timeout giving you the "WordPress keeps logging me out" trouble tin can be speedily resolved in most cases. Specifically, make sure to:

    • Clear Your Browser's Cache
    • Clear Your Browser's Cookies
    • Check Your Browser's Settings
    • Clear Your WordPress Site'southward Cache
    • Double Check Your WordPress Site Accost
    • Disable and Re-Enable WordPress Plugins
    • Manually Update How Long Y'all're Remembered

If you host your site with Kinsta and still demand help, feel free to reach out to us. We have WordPress experts gear up and waiting to help.


Relieve time, costs and maximize site performance with:

  • Instant assistance from WordPress hosting experts, 24/seven.
  • Cloudflare Enterprise integration.
  • Global audience reach with 32 information centers worldwide.
  • Optimization with our built-in Awarding Performance Monitoring.

All of that and much more, in one program with no long-term contracts, assisted migrations, and a 30-day-coin-back-guarantee. Check out our plans or talk to sales to find the programme that's right for you.