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.

Croct's mascot winking
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:

PageDescription
ConstructorLearn how to initialize a cookie configuration.
getClientIdNameLearn how to get the name of the client ID cookie.
getUserTokenNameLearn how to get the name of the user token cookie.
getClientIdDurationLearn how to get the lifetime of the client ID cookie.
getUserTokenDurationLearn how to get the lifetime of the user token cookie.
getDomainLearn how to get the domain of the cookies.
isSecureLearn how to check whether the cookies are sent only over HTTPS.
getSameSiteLearn how to get the SameSite policy applied to the cookies.