{"id":11903,"date":"2026-07-06T09:39:14","date_gmt":"2026-07-06T07:39:14","guid":{"rendered":"https:\/\/mybox.com\/help\/?post_type=manual_kb&#038;p=11903"},"modified":"2026-07-06T09:39:20","modified_gmt":"2026-07-06T07:39:20","slug":"wordpress-keeps-logging-me-out","status":"publish","type":"manual_kb","link":"https:\/\/mybox.com\/help\/en\/knowledgebase\/wordpress-keeps-logging-me-out\/","title":{"rendered":"WordPress keeps logging me out"},"content":{"rendered":"\n<div class=\"translation-block translation-block-merged\">\n<p class=\"wp-block-paragraph\">WordPress normally keeps you logged in while you manage your website, unless the session expires or the login cookies become invalid. If WordPress repeatedly logs you out, the cause is usually related to cookies, cache, browser settings, security plugins, or a mismatch between the website address settings.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This article explains the most common reasons why WordPress may keep logging you out and what to check before contacting support.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_86 ez-toc-wrap-left counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/wordpress-keeps-logging-me-out\/#Why_WordPress_login_sessions_expire\" >Why WordPress login sessions expire<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/wordpress-keeps-logging-me-out\/#Common_causes\" >Common causes<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/wordpress-keeps-logging-me-out\/#1_The_WordPress_Address_and_Site_Address_do_not_match\" >1. The WordPress Address and Site Address do not match<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/wordpress-keeps-logging-me-out\/#2_Browser_cookies_are_blocked_or_cleared\" >2. Browser cookies are blocked or cleared<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/wordpress-keeps-logging-me-out\/#3_Cached_login_or_admin_pages\" >3. Cached login or admin pages<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/wordpress-keeps-logging-me-out\/#4_Security_plugin_settings\" >4. Security plugin settings<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/wordpress-keeps-logging-me-out\/#5_Changing_IP_address_or_network\" >5. Changing IP address or network<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/wordpress-keeps-logging-me-out\/#6_Plugin_or_theme_conflicts\" >6. Plugin or theme conflicts<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/wordpress-keeps-logging-me-out\/#7_Incorrect_SSL_or_HTTPS_configuration\" >7. Incorrect SSL or HTTPS configuration<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/wordpress-keeps-logging-me-out\/#What_to_check_first\" >What to check first<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/wordpress-keeps-logging-me-out\/#WordPress_Address_vs_Site_Address\" >WordPress Address vs. Site Address<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/wordpress-keeps-logging-me-out\/#Cache_and_login_pages\" >Cache and login pages<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/wordpress-keeps-logging-me-out\/#When_the_issue_started_matters\" >When the issue started matters<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/wordpress-keeps-logging-me-out\/#What_is_normal\" >What is normal<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/wordpress-keeps-logging-me-out\/#When_to_contact_support\" >When to contact support<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/wordpress-keeps-logging-me-out\/#Summary\" >Summary<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Why_WordPress_login_sessions_expire\"><\/span>Why WordPress login sessions expire<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<\/div>\n\n<div id=\"mybox-3419697488\" class=\"mybox-content mybox-entity-placement\"><div class=\"early-access-banner-inpost\">\r\n  <div class=\"banner-left-inpost\">\r\n    <div class=\"icon-box-inpost\">\r\n      <img decoding=\"async\" src=\"https:\/\/mybox.com\/help\/wp-content\/uploads\/2026\/02\/square-info-icon.svg\" alt=\"Info\">\r\n    <\/div>\r\n    <div class=\"text-box-inpost\">\r\n      <span class=\"label-inpost\"><span class=\"translation-block translation-block-banner-text\">Early access<\/span><\/span>\r\n      <h4><span class=\"translation-block translation-block-banner-text\">Still need help?<\/span><\/h4>\r\n      <p><span class=\"translation-block translation-block-banner-text\">Contact our customer service team.<\/span><\/p>\r\n    <\/div>\r\n  <\/div>\r\n\r\n  <div class=\"banner-right-inpost\">\r\n    <a href=\"https:\/\/panel.mybox.com\/helpdesk2\/v\/list\/\" class=\"banner-button-inpost\"><span class=\"translation-block translation-block-banner-text\">Message us<\/span><\/a>\r\n  <\/div>\r\n<\/div><\/div>\n\n<div class=\"translation-block translation-block-merged\"><p class=\"wp-block-paragraph\">When you log in to WordPress, the website stores a login session in your browser using cookies. These cookies help WordPress recognize that you are already authenticated.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If the cookie cannot be saved, becomes invalid, or no longer matches the website address, WordPress may ask you to log in again. This can happen even if your username and password are correct.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Common_causes\"><\/span>Common causes<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"1_The_WordPress_Address_and_Site_Address_do_not_match\"><\/span>1. The WordPress Address and Site Address do not match<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">WordPress uses two important address settings:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>WordPress Address<\/li>\n\n\n\n<li>Site Address<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">If one uses <code>http:\/\/<\/code> and the other uses <code>https:\/\/<\/code>, or if one uses <code>www<\/code> and the other does not, WordPress cookies may not match correctly.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example, these are treated as different addresses:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>https:&#47;&#47;example.com\nhttps:\/\/www.example.com\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The same applies to:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>http:&#47;&#47;example.com\nhttps:\/\/example.com\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Both WordPress address settings should usually use the same version of the domain.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"2_Browser_cookies_are_blocked_or_cleared\"><\/span>2. Browser cookies are blocked or cleared<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">WordPress needs cookies to keep your session active.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If your browser blocks cookies, clears them automatically, or runs in a strict privacy mode, WordPress may not be able to keep you logged in.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This can also happen when using browser extensions that block tracking, cookies, or scripts.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"3_Cached_login_or_admin_pages\"><\/span>3. Cached login or admin pages<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Caching is useful for public website pages, but WordPress admin pages should not be cached.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If the login page or admin area is cached incorrectly, WordPress may serve an outdated session page. This can cause repeated logouts, failed redirects, or login loops.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Caching plugins, server cache, browser cache, or CDN cache can all affect this behavior.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"4_Security_plugin_settings\"><\/span>4. Security plugin settings<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Some security plugins automatically log users out after a short period of inactivity. Others may invalidate sessions when the IP address changes, when too many login attempts are detected, or when a browser appears unusual.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">These settings are intended to protect the website, but they can also cause frequent logouts if they are too strict.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"5_Changing_IP_address_or_network\"><\/span>5. Changing IP address or network<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">WordPress itself does not always require a fixed IP address, but some security plugins or firewall rules may treat changing IP addresses as suspicious.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This can happen when switching between Wi-Fi and mobile data, using a VPN, or connecting through a network where the public IP changes often.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"6_Plugin_or_theme_conflicts\"><\/span>6. Plugin or theme conflicts<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A plugin or theme can interfere with login sessions if it changes cookies, redirects, security headers, cache behavior, or user session handling.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This is more likely if the issue started after installing, updating, or changing a plugin or theme.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"7_Incorrect_SSL_or_HTTPS_configuration\"><\/span>7. Incorrect SSL or HTTPS configuration<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">If SSL is active but WordPress is not configured consistently for HTTPS, login cookies may not be handled correctly.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This can happen when the website loads partly over HTTP and partly over HTTPS, or when redirects between HTTP and HTTPS are not consistent.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"What_to_check_first\"><\/span>What to check first<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Start with the simplest checks:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Open WordPress in a private or incognito browser window.<\/li>\n\n\n\n<li>Try logging in again.<\/li>\n\n\n\n<li>Clear your browser cache and cookies for the website.<\/li>\n\n\n\n<li>Check whether the issue happens in another browser.<\/li>\n\n\n\n<li>Disable VPN temporarily if you are using one.<\/li>\n\n\n\n<li>Confirm that the website loads consistently with either <code>www<\/code> or non-<code>www<\/code>.<\/li>\n\n\n\n<li>Confirm that the website loads consistently over HTTPS.<\/li>\n\n\n\n<li>Review recent plugin, theme, or security changes.<\/li>\n\n\n\n<li>Clear any WordPress, server, or CDN cache.<\/li>\n\n\n\n<li>Check whether a security plugin has short session or forced logout rules.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"WordPress_Address_vs_Site_Address\"><\/span>WordPress Address vs. Site Address<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">WordPress login cookies depend on the website address being consistent.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In the WordPress admin area, these settings are usually found under:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Settings \u2192 General\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The values should normally match the public version of the website.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>WordPress Address: https:\/\/example.com\nSite Address: https:\/\/example.com\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If the website uses <code>www<\/code>, both should use <code>www<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>WordPress Address: https:\/\/www.example.com\nSite Address: https:\/\/www.example.com\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Avoid mixing <code>http<\/code> and <code>https<\/code>, or mixing <code>www<\/code> and non-<code>www<\/code>, unless your website has a specific configuration that requires it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Cache_and_login_pages\"><\/span>Cache and login pages<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">WordPress admin and login pages should not be cached.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The following paths should usually be excluded from cache:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/wp-admin\/\n\/wp-login.php\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">For ecommerce, membership, or logged-in websites, additional pages may also need to be excluded from cache, such as account pages, checkout pages, or user dashboards.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If caching is the cause, clearing cache may help temporarily, but the better solution is to exclude login and admin areas from caching rules.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"When_the_issue_started_matters\"><\/span>When the issue started matters<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The timing of the issue can help identify the cause.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If WordPress started logging you out after a plugin update, theme change, SSL change, domain change, cache change, or security rule change, that recent change should be reviewed first.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If nothing changed on the website, check browser settings, VPN usage, network changes, and cookie behavior.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"What_is_normal\"><\/span>What is normal<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">It is normal for WordPress sessions to expire after some time. It is also normal to be asked to log in again after clearing browser cookies, changing browsers, or using a different device.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It is not normal to be logged out repeatedly every few seconds or every time you open a new admin page. That usually means cookies, cache, redirects, or security rules need to be reviewed.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"When_to_contact_support\"><\/span>When to contact support<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Contact support if the issue continues after checking browser cookies, cache, address settings, HTTPS consistency, and recent plugin changes.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Include the following details:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>the website address<\/li>\n\n\n\n<li>when the issue started<\/li>\n\n\n\n<li>whether it happens in more than one browser<\/li>\n\n\n\n<li>whether it happens on another device or network<\/li>\n\n\n\n<li>whether you use a VPN<\/li>\n\n\n\n<li>whether any plugin, theme, SSL, or cache changes were made recently<\/li>\n\n\n\n<li>whether the issue happens immediately or after a period of inactivity<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">This information helps support identify whether the issue is related to the hosting environment, cache, SSL, redirects, or the WordPress application.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Summary\"><\/span>Summary<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">WordPress usually logs users out repeatedly when login cookies cannot be stored or matched correctly. The most common causes are mismatched website addresses, blocked cookies, cached login pages, strict security settings, plugin conflicts, or inconsistent HTTPS configuration.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Start by checking browser cookies, cache, WordPress address settings, SSL consistency, and recent changes. If the issue continues, support can review the environment with more context.<\/p>\n<\/div>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"template":"","format":"standard","manualknowledgebasecat":[58],"manual_kb_tag":[],"class_list":["post-11903","manual_kb","type-manual_kb","status-publish","format-standard","hentry","manualknowledgebasecat-web-applications-cms"],"_links":{"self":[{"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manual_kb\/11903","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manual_kb"}],"about":[{"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/types\/manual_kb"}],"author":[{"embeddable":true,"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":1,"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manual_kb\/11903\/revisions"}],"predecessor-version":[{"id":11904,"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manual_kb\/11903\/revisions\/11904"}],"wp:attachment":[{"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/media?parent=11903"}],"wp:term":[{"taxonomy":"manualknowledgebasecat","embeddable":true,"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manualknowledgebasecat?post=11903"},{"taxonomy":"manual_kb_tag","embeddable":true,"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manual_kb_tag?post=11903"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}