Name | Description |
---|---|
Name | Description |
---|---|
Lax
Indicates the client should send the cookie with "same-site" requests, and with "cross-site" top-level navigations.
None
Indicates the client should disable same-site restrictions. When using this value, the cookie must also have the Secure property set to true.
Strict
Indicates the client should only send the cookie with "same-site" requests.
Unspecified
No SameSite field will be set, the client should follow its default cookie policy.
Returns or sets the value for the SameSite attribute of the cookie. The default value is Unspecified.
Creates a new instance of .
Creates a new instance of .
Name | Type | Description |
---|
Creates a new instance of .
Name | Type | Description |
---|
Creates a new instance of .
Name | Type | Description |
---|
Creates a new instance of .
Name | Type | Description |
---|
: Returns or sets the domain to associate the cookie with.
: Returns or sets the expiration date and time for the cookie.
: Returns or sets the name for the .
: Returns or sets the path of the .
: Returns or sets the value for the SameSite attribute of the cookie. The default value is .
: Returns or sets whether to transmit the cookie using Secure Sockets Layer (SSL)--that is, over HTTPS only.
: Returns or sets an individual cookie value.
name | The name of the cookie. |
value | The value of the cookie. |
name | The name of the cookie. |
value | The value of the cookie. |
domain | The domain, or partial domain, associated with the cookie. |
name | The name of the cookie. |
value | The value of the cookie. |
expires | The expiration date/time of the cookie. |
name | The name of the cookie. |
value | The value of the cookie. |
domain | The domain, or partial domain, associated with the cookie. |
expires | The expiration date/time of the cookie. |