title | titleSuffix | description | services | author | manager | ms.service | ms.workload | ms.topic | ms.date | ms.author | ms.subservice |
---|---|---|---|---|---|---|---|---|---|---|---|
Cookie definitions |
Azure AD B2C |
Provides definitions for the cookies used in Azure Active Directory B2C. |
active-directory-b2c |
msmimart |
celestedg |
active-directory |
identity |
reference |
08/12/2021 |
mimart |
B2C |
The following sections provide information about the cookies used in Azure Active Directory B2C (Azure AD B2C).
The Microsoft Azure AD B2C service is compatible with SameSite browser configurations, including support for SameSite=None
with the Secure
attribute.
To safeguard access to sites, web browsers will introduce a new secure-by-default model that assumes all cookies should be protected from external access unless otherwise specified. The Chrome browser is the first to implement this change, starting with Chrome 80 in February 2020. For more information about preparing for the change in Chrome, see Developers: Get Ready for New SameSite=None; Secure Cookie Settings on the Chromium Blog.
Developers must use the new cookie setting, SameSite=None
, to designate cookies for cross-site access. When the SameSite=None
attribute is present, an additional Secure
attribute must be used so cross-site cookies can only be accessed over HTTPS connections. Validate and test all your applications, including those applications that use Azure AD B2C.
For more information, see:
- Handle SameSite cookie changes in Chrome browser
- Effect on customer websites and Microsoft services and products in Chrome version 80 or later
The following table lists the cookies used in Azure AD B2C.
Name | Domain | Expiration | Purpose |
---|---|---|---|
x-ms-cpim-admin |
main.b2cadmin.ext.azure.com | End of browser session | Holds user membership data across tenants. The tenants a user is a member of and level of membership (Admin or User). |
x-ms-cpim-slice |
b2clogin.com, login.microsoftonline.com, branded domain | End of browser session | Used to route requests to the appropriate production instance. |
x-ms-cpim-trans |
b2clogin.com, login.microsoftonline.com, branded domain | End of browser session | Used for tracking the transactions (number of authentication requests to Azure AD B2C) and the current transaction. |
x-ms-cpim-sso:{Id} |
b2clogin.com, login.microsoftonline.com, branded domain | End of browser session | Used for maintaining the SSO session. This cookie is set as persistent , when Keep Me Signed In is enabled. |
x-ms-cpim-cache:{id}_n |
b2clogin.com, login.microsoftonline.com, branded domain | End of browser session, successful authentication | Used for maintaining the request state. |
x-ms-cpim-csrf |
b2clogin.com, login.microsoftonline.com, branded domain | End of browser session | Cross-Site Request Forgery token used for CRSF protection. |
x-ms-cpim-dc |
b2clogin.com, login.microsoftonline.com, branded domain | End of browser session | Used for Azure AD B2C network routing. |
x-ms-cpim-ctx |
b2clogin.com, login.microsoftonline.com, branded domain | End of browser session | Context |
x-ms-cpim-rp |
b2clogin.com, login.microsoftonline.com, branded domain | End of browser session | Used for storing membership data for the resource provider tenant. |
x-ms-cpim-rc |
b2clogin.com, login.microsoftonline.com, branded domain | End of browser session | Used for storing the relay cookie. |