CookieConfiguration
Discover how to customize the Croct session cookies.
Configuration for the names, lifetimes, and attributes of the Croct session cookies, such as the client ID and user token.
You pass it when you create the cookie storage to customize how those cookies are written.
Looking for something specific?
Use the search bar at the top of the page or press / to quickly search through the documentation.
Use the summary below to quickly jump to a specific topic:
| Page | Description |
|---|---|
| Constructor | Learn how to initialize a cookie configuration. |
| getClientIdName | Learn how to get the name of the client ID cookie. |
| getUserTokenName | Learn how to get the name of the user token cookie. |
| getClientIdDuration | Learn how to get the lifetime of the client ID cookie. |
| getUserTokenDuration | Learn how to get the lifetime of the user token cookie. |
| getDomain | Learn how to get the domain of the cookies. |
| isSecure | Learn how to check whether the cookies are sent only over HTTPS. |
| getSameSite | Learn how to get the SameSite policy applied to the cookies. |