toggle menu
Spring Boot Kotlin API
3.3.10
jvm
switch theme
search in API
spring-boot
/
org.springframework.boot.web.server
/
Cookie
Cookie
open
class
Cookie
Cookie properties.
Author
Phillip Webb
Andy Wilkinson
Brian Clozel
Weix Sun
Since
2.6.0
Inheritors
Cookie
Members
Constructors
Cookie
Link copied to clipboard
constructor
(
)
Types
Same
Site
Link copied to clipboard
enum
SameSite
SameSite values.
Properties
domain
Link copied to clipboard
open
var
domain
:
String
Domain for the cookie.
http
Only
Link copied to clipboard
open
var
httpOnly
:
Boolean
Whether to use "HttpOnly" cookies for the cookie.
max
Age
Link copied to clipboard
@
DurationUnit
(
value
=
ChronoUnit.SECONDS
)
open
var
maxAge
:
Duration
Maximum age of the cookie.
name
Link copied to clipboard
open
var
name
:
String
Name for the cookie.
path
Link copied to clipboard
open
var
path
:
String
Path of the cookie.
same
Site
Link copied to clipboard
open
var
sameSite
:
Cookie.SameSite
SameSite setting for the cookie.
secure
Link copied to clipboard
open
var
secure
:
Boolean
Whether to always mark the cookie as secure.