Keycloak: Action expired. Please continue with login now / Your login attempt timed out

The user stayed on a Keycloak page longer than the login session lifespan, or the session cookie was lost.

Exact message you may see Action expired. Please continue with login nowYour login attempt timed outKeycloak action expiredRestart login cookie not found
Seen on: Keycloak

Meaning

Each login attempt has a time limit (default about 30 minutes). Pages opened from a stale tab or a browser that blocked the AUTH_SESSION_ID cookie show this message.

Common causes

  • Login page left open too long
  • Browser blocks the session cookie (SameSite, third-party)
  • Several tabs started different logins
  • Reverse proxy not forwarding cookies/headers

⚡ Quick fix

  1. Start the login again from the application
  2. Increase "Login timeout" in Realm settings → Sessions
  3. Configure the proxy headers (X-Forwarded-*)

Detailed fix by platform

Keycloak

  1. Realm settings → Sessions → Login timeout / Login action timeout

How to diagnose

  1. Time — How long was the page open?
  2. Cookie — AUTH_SESSION_ID set?
  3. Proxy — Headers forwarded?

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.