{"id":381,"date":"2024-03-20T12:35:28","date_gmt":"2024-03-20T12:35:28","guid":{"rendered":"https:\/\/www.webhostinghyderabad.co.in\/tutorials\/?p=381"},"modified":"2024-03-20T12:37:33","modified_gmt":"2024-03-20T12:37:33","slug":"how-to-fix-the-wordpress-keeps-logging-me-out-problem","status":"publish","type":"post","link":"https:\/\/www.webhostinghyderabad.co.in\/tutorials\/how-to-fix-the-wordpress-keeps-logging-me-out-problem\/","title":{"rendered":"How To Fix The \u201cWordPress Keeps Logging Me Out\u201d Problem"},"content":{"rendered":"\n<p>How to fix the \u201cWordPress keeps logging me out\u201d problem depends on what\u2019s causing it. If you\u2019re having this issue, start with the simplest solutions and work your way up to more complex ones.<\/p>\n\n\n\n<div class=\"wp-block-rank-math-toc-block\" id=\"rank-math-toc\"><h2>Table of Contents<\/h2><nav><ul><li><a href=\"#word-press-keeps-logging-me-out\">WordPress Keeps Logging Me Out <\/a><\/li><li><a href=\"#1-clear-your-browsers-cookies\">1. Clear Your Browser\u2019s Cookies<\/a><ul><li><a href=\"#google-chrome\">Google Chrome<\/a><\/li><li><a href=\"#firefox\">Firefox<\/a><\/li><li><a href=\"#microsoft-edge\">Microsoft Edge<\/a><\/li><\/ul><\/li><li><a href=\"#2-check-your-browser-settings\">2. Check Your Browser Settings<\/a><ul><li><a href=\"#chrome\">Chrome<\/a><\/li><li><a href=\"#firefox-1\">Firefox<\/a><\/li><li><a href=\"#microsoft-edge-2\">Microsoft Edge<\/a><\/li><\/ul><\/li><li><a href=\"#3-clear-your-word-press-sites-cache\">3. Clear Your WordPress Site\u2019s Cache<\/a><\/li><li><a href=\"#4-check-your-word-press-site-address\">4. Check Your WordPress Site Address<\/a><\/li><li><a href=\"#5-disable-and-re-enable-word-press-plugins\">5.Disable And Re-enable WordPress Plugins<\/a><\/li><\/ul><\/nav><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"word-press-keeps-logging-me-out\">WordPress Keeps Logging Me Out <\/h3>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"1-clear-your-browsers-cookies\">1. Clear Your Browser\u2019s Cookies<\/h3>\n\n\n\n<p>One of the most common reasons for WordPress to repeatedly log someone out is when they\u2019re trying to access their site with an expired cookie saved in their browser \u2014which means their most recent browser session can\u2019t be authenticated. Clearing your cookies should solve this issue if it\u2019s the culprit for you.<\/p>\n\n\n\n<p><strong>Note:<\/strong> To make a quick test if caching or cookie settings are logging you out of WordPress, you could use incognito mode. Private browsing works by initiating a separate temporary session from the main one, allowing you to rule out session-related problems. This won\u2019t fix the problem, but it can help troubleshoot possible issues!<\/p>\n\n\n\n<p>Clearing cookies is straightforward in most major browsers. We\u2019ll take you through how to clear your cookies in the four most popular web browsers: Chrome, Firefox, Safari, and Edge Browser.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"google-chrome\">Google Chrome<\/h4>\n\n\n\n<p>At the top right, click on the three vertical dots icon, then click <strong>Clear browsing data<\/strong>. A new tab will open with a popup box. Make sure you\u2019re in the <strong>Basic<\/strong> tab.<\/p>\n\n\n\n<p>Choose a time range to delete your cookies. To delete everything, choose <strong>All time<\/strong>.<\/p>\n\n\n\n<p>Check the box next to <strong>Cookies<\/strong> and other site data.<\/p>\n\n\n\n<p>Click <strong>Clear data<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"804\" height=\"505\" src=\"https:\/\/www.webhostinghyderabad.co.in\/tutorials\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-20-180450.png\" alt=\"WordPress Keeps Logging Me Out\" class=\"wp-image-384\" srcset=\"https:\/\/www.webhostinghyderabad.co.in\/tutorials\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-20-180450.png 804w, https:\/\/www.webhostinghyderabad.co.in\/tutorials\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-20-180450-300x188.png 300w, https:\/\/www.webhostinghyderabad.co.in\/tutorials\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-20-180450-768x482.png 768w\" sizes=\"auto, (max-width: 804px) 100vw, 804px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"firefox\">Firefox<\/h4>\n\n\n\n<p>In the <strong>Menu bar<\/strong> at the top of the screen, click on <strong>Firefox<\/strong> and select <strong>Preferences<\/strong>.<\/p>\n\n\n\n<p>Click <strong>Privacy &amp; Security<\/strong> from the menu on the left-hand side. Then, go to the <strong>Cookies and Site Data<\/strong> section. Click the <strong>Clear Data<\/strong>\u2026 button, and the Clear Data cookie notification dialog box will pop up.<\/p>\n\n\n\n<p>Both <strong>Cookies and Site Data<\/strong> and <strong>Cached Web Content<\/strong> will be checked by default, so un-check <strong>Cached Web Content<\/strong> if you only want to clear cookies. Then, click <strong>Clear<\/strong>.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"microsoft-edge\">Microsoft Edge<\/h4>\n\n\n\n<p>Go to <strong>Settings<\/strong>, then <strong>Privacy<\/strong> and <strong>Clear browsing data.<\/strong> Then, use the keyboard command <strong>Ctrl + Shift + Del.<\/strong> You can also go to edge:\/\/settings\/clearbrowserdata in your browser to clear your browser cache.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"2-check-your-browser-settings\">2. Check Your Browser Settings<\/h3>\n\n\n\n<p>If clearing your browser cache and cookies didn\u2019t stop WordPress from logging you out, then it\u2019s time to look at your browser settings. A usual suspect is your browser cookie settings, which may be forcing cookies to expire and forget your login details,&nbsp; prompting you to log back into WordPress constantly.<\/p>\n\n\n\n<p>Luckily, this is another pretty easy fix. Below, we\u2019ll show you how to access and check your browser settings in the four major browsers we\u2019ve been using so far.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"chrome\">Chrome<\/h4>\n\n\n\n<p>Once again, click on the <strong>three vertical dots<\/strong> icon at the top right of your browser, then click <strong>Settings<\/strong>. Select <strong>Privacy and security<\/strong> in the lefthand menu and then on the right, select <strong>Site settings<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2021\/11\/03-Privacy-and-security-site-settings.jpg\" alt=\"'Privacy and security' tab on the Google Chrome Settings window with 'Site settings' annotated.\" class=\"wp-image-43468\"\/><\/figure>\n\n\n\n<p>Scroll down and click <strong>Third-party cookies<\/strong> under Content. From there, you can choose to:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Allow third-party cookies<\/li>\n\n\n\n<li>Block third-party cookies in Incognito mode<\/li>\n\n\n\n<li>Block third-party cookies<\/li>\n<\/ul>\n\n\n\n<p>If cookies are blocked, that could be interfering with your WordPress session and logging you out. If this is the case, select <strong>Allow third-party cookies<\/strong> by clicking on the button next to it. And voila! Now your browser will save the cookie for your WordPress login session.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2021\/11\/04-Allow-third-party-cookies.jpg\" alt=\"Chrome's 'Default behavior' dialog box with the 'Allow third-party cookies' option selected.\" class=\"wp-image-43469\"\/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"firefox-1\">Firefox<\/h4>\n\n\n\n<p>In the <strong>Menu<\/strong> bar at the top of the screen, click on <strong>Firefox<\/strong> and select <strong>Preferences<\/strong>.<\/p>\n\n\n\n<p>Choose <strong>Privacy<\/strong> from the options at the top of the popup box. This is where you can view your settings for <strong>Enhanced Tracking Protection<\/strong>, which includes cookies.<\/p>\n\n\n\n<p>From here, you can choose:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Standard<\/strong><\/li>\n\n\n\n<li><strong>Strict<\/strong><\/li>\n\n\n\n<li><strong>Custom<\/strong><\/li>\n<\/ul>\n\n\n\n<p>If <strong>Strict<\/strong> or <strong>Custom<\/strong> is selected, some or all cookies may be blocked. Selecting <strong>Standard<\/strong> will revert Firefox to default cookie settings and allow all cookies.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"microsoft-edge-2\">Microsoft Edge<\/h4>\n\n\n\n<p>At the top right, click on the <strong>three horizontal dots<\/strong> icon. In the drop-down menu, click the <strong>gear <\/strong>icon for settings. From the settings menu, select <strong>Cookies and site permissions<\/strong>.<\/p>\n\n\n\n<p>Click <strong>Manage and delete cookies and site data<\/strong>. From here, you have three options:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Allow sites to save and read cookie data<\/li>\n\n\n\n<li>Block third-party cookies<\/li>\n\n\n\n<li>Preload pages for faster browsing and searching<\/li>\n<\/ol>\n\n\n\n<p>Choose <strong>Allow sites to save and read cookie data<\/strong> to make sure your cookie settings aren\u2019t causing the \u201cWordPress keeps logging out\u201d error.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"3-clear-your-word-press-sites-cache\">3. Clear Your WordPress Site\u2019s Cache<\/h3>\n\n\n\n<p>Now that we\u2019ve covered browser-related causes, it\u2019s time to explore other potential reasons WordPress keeps logging you out. If you have a WordPress caching <a href=\"https:\/\/www.webhostinghyderabad.co.in\/tutorials\/disable-a-wordpress-plugin-via-cpanel\/\">plugin<\/a> installed, it\u2019s the next place to look. It\u2019s possible that the plugin is storing an outdated version of your site, triggering the \u201cWordPress logging out\u201d issue.<\/p>\n\n\n\n<p>Depending on which caching plugin you use, you\u2019ll typically have an option (or a set of options) on your admin dashboard to clear your WordPress cache with just one click. Go to your dashboard and look at the admin bar at the top of the menu. It\u2019ll likely say something like <strong>Delete Cache<\/strong> or <strong>Purge Cache<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"452\" src=\"https:\/\/www.webhostinghyderabad.co.in\/tutorials\/wp-content\/uploads\/2024\/03\/05-Purge-cache-1024x452.jpg\" alt=\"\" class=\"wp-image-382\" srcset=\"https:\/\/www.webhostinghyderabad.co.in\/tutorials\/wp-content\/uploads\/2024\/03\/05-Purge-cache-1024x452.jpg 1024w, https:\/\/www.webhostinghyderabad.co.in\/tutorials\/wp-content\/uploads\/2024\/03\/05-Purge-cache-300x132.jpg 300w, https:\/\/www.webhostinghyderabad.co.in\/tutorials\/wp-content\/uploads\/2024\/03\/05-Purge-cache-768x339.jpg 768w, https:\/\/www.webhostinghyderabad.co.in\/tutorials\/wp-content\/uploads\/2024\/03\/05-Purge-cache-1536x678.jpg 1536w, https:\/\/www.webhostinghyderabad.co.in\/tutorials\/wp-content\/uploads\/2024\/03\/05-Purge-cache.jpg 1600w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Once you click the button or choose the option you want, WordPress will direct you to your caching plugin, where you can either select more options or confirm that you want to delete your cache. You may even be able to choose specific cache elements to delete. When you reload your WordPress site, it will automatically generate a new cache.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"4-check-your-word-press-site-address\">4. Check Your WordPress Site Address<\/h3>\n\n\n\n<p>Another reason why WordPress might keep logging you out is because there\u2019s a mismatch between your WordPress site address and the URL saved in the login session cookies. Often, this happens after a domain name change or when you add an SSL certificate, usually because you might forget to update the website URLs in WP-Admin.<\/p>\n\n\n\n<p>You can check this by going to <strong>Settings<\/strong> (in the menu on the left side menu on your admin dashboard) and clicking on <strong>General<\/strong>. You may need to scroll down a bit, but you should see two URL fields labeled:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>WordPress Address (URL)<\/strong><\/li>\n\n\n\n<li><strong>Site Address (URL)<\/strong><\/li>\n<\/ul>\n\n\n\n<p><strong>WordPress Address<\/strong> is the location of your WordPress files, while <strong>Site Address<\/strong> is the address visitors need to type to find and access your website.<\/p>\n\n\n\n<p>In the <strong>Site Address<\/strong> field, you can set the URL to either http:\/\/www.yourdomain.com or http:\/\/yourdomain.com. Some people prefer not to have \u201cwww\u201d before their domain name for branding reasons or to make their URLs easier to type.<\/p>\n\n\n\n<p>What you\u2019re looking for here is if the two addresses in both these fields are mismatched. If that\u2019s the case, WordPress may see the discrepancy and log you out by default. You may be able to just edit the URLs right there in your <strong>Settings<\/strong>, then click the <strong>Save Changes<\/strong> button at the bottom of the screen. However, if that doesn\u2019t work or if you can\u2019t stay logged in for long enough to update the URL settings, WordPress Keeps Logging Me Out you\u2019ll have to fix this another way.<\/p>\n\n\n\n<p>The best way to do this is to edit your wp-config.php file. This document contains vital information for your WordPress site, like its database connection details.<\/p>\n\n\n\n<p>You can access this file using a Secure File Transfer Protocol (SFTP) client. One of the most popular options is the <a href=\"https:\/\/filezilla-project.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">free FileZilla program<\/a>. If you\u2019re a customer, you can also use our secure WebFTP program.<\/p>\n\n\n\n<p>Start your SFTP client and look for the wp-config.php file. You can find it in the root directory of your domain.<\/p>\n\n\n\n<p>Open the file and paste the following code into it. You\u2019ll want to swap out the example text for your own domain names:<\/p>\n\n\n\n<p><strong>define( \u2018WP_HOME\u2019, \u2018http:\/\/example.com\u2019 );<br><\/strong><strong>define( \u2018WP_SITEURL\u2019, \u2018http:\/\/example.com\u2019 );<\/strong><\/p>\n\n\n\n<p>Now save the file and close your SFTP client. After that, you can go back to your WordPress dashboard to check if the logging out issue was resolved.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"5-disable-and-re-enable-word-press-plugins\">5.Disable And Re-enable WordPress Plugins<\/h3>\n\n\n\n<p>Are you still with us? If none of the reasons we\u2019ve covered so far seem to be causing your WordPress logging-out issue, the next troubleshooting step is to check for conflicts with plugins.<\/p>\n\n\n\n<p>A plugin is an add-on that you have installed on your WordPress site. You may have sourced it from the <strong>Plugins<\/strong> section on your site or through the <a href=\"https:\/\/wordpress.org\/plugins\/\" target=\"_blank\" rel=\"noreferrer noopener\">WordPress plugin directory<\/a>.<\/p>\n\n\n\n<p>A faulty plugin could be causing WordPress to log you out if it performs login authentication using cookies to function on your site. To see if this is your problem, you need to isolate and disable the faulty plugin.<\/p>\n\n\n\n<p>Apart from the reasons we\u2019ve mentioned so far, a faulty WordPress plugin could also be behind the \u201cWordPress keeps logging me out\u201d issue. This is particularly likely if that plugin performs login authentication using cookies. Poorly-coded plugins can also be the cause of login or logout issues. To see if this is the cause of your problem, you will need to pinpoint the faulty plugin first and then disable it.<\/p>\n\n\n\n<p>If you only have a few active plugins, this will be an easy process. However, if you have many add-ons, buckle in \u2014 this is going to take a while!<\/p>\n\n\n\n<p>You can deactivate plugins by clicking <strong>Plugins<\/strong> and then <strong>Installed Plugins<\/strong> on the left side menu on your WordPress admin dashboard.<\/p>\n\n\n\n<p>You\u2019ll need to reactivate each plugin one at a time and test to determine if it is the issue. You can do this by enabling one plugin, logging back into your WordPress dashboard, and checking to see if it triggers the problem. Clear your cache in between each plugin. When you start having login issues again, the last plugin you reactivated is most likely to blame.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to fix the \u201cWordPress keeps logging me out\u201d problem depends on what\u2019s causing it. If you\u2019re having this issue, start with the simplest solutions and work your way up to more complex ones. WordPress Keeps Logging Me Out 1. Clear Your Browser\u2019s Cookies One of the most common reasons for WordPress to repeatedly log [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":383,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-381","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.webhostinghyderabad.co.in\/tutorials\/wp-json\/wp\/v2\/posts\/381","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webhostinghyderabad.co.in\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webhostinghyderabad.co.in\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webhostinghyderabad.co.in\/tutorials\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webhostinghyderabad.co.in\/tutorials\/wp-json\/wp\/v2\/comments?post=381"}],"version-history":[{"count":2,"href":"https:\/\/www.webhostinghyderabad.co.in\/tutorials\/wp-json\/wp\/v2\/posts\/381\/revisions"}],"predecessor-version":[{"id":387,"href":"https:\/\/www.webhostinghyderabad.co.in\/tutorials\/wp-json\/wp\/v2\/posts\/381\/revisions\/387"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.webhostinghyderabad.co.in\/tutorials\/wp-json\/wp\/v2\/media\/383"}],"wp:attachment":[{"href":"https:\/\/www.webhostinghyderabad.co.in\/tutorials\/wp-json\/wp\/v2\/media?parent=381"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webhostinghyderabad.co.in\/tutorials\/wp-json\/wp\/v2\/categories?post=381"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webhostinghyderabad.co.in\/tutorials\/wp-json\/wp\/v2\/tags?post=381"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}