Login Page Cookies
On this page
FusionAuth sets cookies in the browser when you use the hosted login pagesThe login, registration, password recovery, and multi-factor authentication pages that FusionAuth serves. A Theme controls the look of the pages. or the hosted backend. Some APIs, such as the Login APIThe FusionAuth API that logs a user in without the hosted login pages., also set cookies. The API documentation lists those cookies.
Domains#
FusionAuth sets every cookie on the host that serves FusionAuth. When FusionAuth serves auth.example.com, FusionAuth sets cookies for auth.example.com and never for .example.com. To change the host, put FusionAuth behind a proxy. For more information, see Proxy FusionAuth.
Most FusionAuth cookies use a SameSite value of Strict or Lax, to protect against cross-site request forgery. The browser leaves those cookies off cross-site requests, except for top-level navigation. A FusionAuth page in an iframe on another site therefore can't read the cookies. FusionAuth marks cookies Secure only when FusionAuth serves the page over HTTPS.
Cookie List#
The following list is for information only. Cookie names, types, and descriptions can change in any release.
| Name | Type | Description |
|---|---|---|
access_token | Session | The access token. Set by the login API. |
app.at | Persistent | The access token. Set by the hosted backend. |
app.at_exp | Persistent | The access token expiration. Set by the hosted backend. |
app.idt | Persistent | The Id token. Set by the hosted backend. |
app.pkce_v | Persistent | The PKCE verifier. Set by the hosted backend. |
app.rt | Persistent | The refresh token. Set by the hosted backend. |
fa.bypass-c | Session | Implements security functionality. |
fa.bypass-c.csrf | Session | Implements security functionality. |
federated.csrf | Session | Implements security functionality. |
fusionauth.app.pkce-verifier | Request | Used to support Proof Key for Code Exchange during login. |
fusionauth.csrf | Session | Implements security functionality. |
fusionauth.flash-message | Request | Used to display a message across requests. |
fusionauth.known-device.* | Persistent | Identifies a device known to FusionAuth. More than one cookie may be set. |
fusionauth.li | Session | Used to support post-authentication steps during login. |
fusionauth.locale | Persistent | The locale used to localize the themed pages. |
fusionauth.pkce-verifier | Request | Implements security functionality. |
fusionauth.remember-device | Persistent | Records whether the user wants to remain logged in on this device. |
fusionauth.sso | Persistent | Represents a single sign-on session. |
fusionauth.timezone | Persistent | The configured or approximated timezone used to adjust displayed dates and times. |
fusionauth.trust | Persistent | Allows a MFA challenge to be bypassed during login. |
fusionauth.trust_c | Request | Implements security functionality. |
fusionauth.trust_t | Request | Implements security functionality. |
fusionauth.trusted-device.* | Persistent | Identifies a trusted device. More than one cookie may be set. |
fusionauth.webauthn-reauth.* | Persistent | Records user choices about WebAuthn and passkeys. More than one cookie may be set. |
refresh_token | Persistent | The refresh token when the login API is used. |
saml.csrf | Session | Implements security functionality. |
Related
Reference for every FusionAuth setting that controls session, token, and logout behavior.
Learn how to fix common problems with FusionAuth SSO, session lifetimes, and logout.
Learn about the different data types used by FusionAuth.
Learn how to set how long users stay logged in to FusionAuth and to your applications.