What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

When you sign in to WordPress, it gives your browser authentication cookies. On later requests, the browser sends applicable cookies back, and WordPress checks them to identify your account and verify that the session is still valid. The browser stores the cookie; WordPress makes the trust decision.

What happens when you open wp-admin?

  1. If you request /wp-admin/ while logged out, WordPress sends you to wp-login.php to sign in. The official Logging In guide describes this flow.

  2. After your credentials are accepted, WordPress issues authentication cookies. The browser stores them and automatically includes applicable cookies with later requests to the site.

    Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  3. WordPress parses and validates the cookie on a request. Core checks details including its expiration, keyed hash, and session token; if valid, it can resolve the request to a user ID. The cookie is not your plaintext password. WordPress’s wp_generate_auth_cookie() reference describes cookie data built from the user login, expiration, session token, and a keyed hash, while wp_validate_auth_cookie() documents validation.

Which WordPress cookies are involved?

WordPress documents several cookie roles. The precise names and behavior on a particular site can vary with configuration, constants, plugins, and WordPress version, so treat these as documented conventions rather than a promise about every deployment.

The official WordPress cookies documentation explains that cookies help verify who you are. WordPress recommends HTTPS; it protects the connection carrying login and session data.

How long does a WordPress login cookie last?

The defaults depend on whether you select Remember Me. WordPress’s wp_set_auth_cookie() reference lists these default expiration periods; the reference page does not state a publication year.

Login choice Documented default What to expect
Remember Me off 2 days A browser-session cookie that expires when the browser closes if that happens sooner.
Remember Me on 14 days A persistent cookie with a 14-day default expiration.

These are defaults, not guaranteed durations for every site. The auth_cookie_expiration filter can change the period, and browser behavior and site customization also matter. A session token is managed server-side; WordPress can destroy the current session or other sessions, which can invalidate a token before the cookie’s stated expiration. Logging out clears authentication cookies in the browser.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Authentication, authorization, and nonces do different jobs

These checks are complementary, not interchangeable:

A nonce is not a login credential or permission grant. WordPress states that “Nonces should never be relied on for authentication, authorization, or access control.” Its Nonces documentation, updated July 23, 2026, also explains that WordPress nonces are not true one-time-use values. A sensitive action still needs a capability check; a valid cookie identifies the user, and the nonce adds a separate request-integrity check.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Why can wp-admin keep returning to the login page?

A login loop can occur when WordPress cannot set or use the expected cookies. The official login troubleshooting guide identifies several possible causes. Check them methodically rather than assuming one is responsible:

  1. Cookies are disabled or blocked. Confirm that your browser permits cookies for the site, then try signing in again.

  2. The login flow changes between HTTP and HTTPS. Use the same HTTPS address throughout the login process, and check for mixed HTTP/HTTPS behavior.

    Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  3. A cookie-domain setting does not match the site. Review COOKIE_DOMAIN only if it has been configured; a mismatch can keep the browser from returning the cookie where WordPress expects it.

  4. A plugin conflict affects the login flow. Temporarily isolate plugins to see whether the loop stops, then narrow down the conflict.

  5. A cache serves a stale response. Ensure login and cookie-based pages are not being served from a cache in a way that preserves an old login response.

These are diagnostic possibilities, not a diagnosis of a specific site. If the problem persists, check each setting in the context of your site’s configuration.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.