Wisej.Base.Cookie SameSiteMode
Namespace: Wisej.Base
Assembly: Wisej.Framework (4.0.0.0)
Determine if a cookie should be restricted to a first-party or same-site context.
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 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 .
Wisej.Base.Cookie
Namespace: Wisej.Base
Assembly: Wisej.Framework (4.0.0.0)
Represents an individual HTTP cookie.
Creates a new instance of Cookie.
Creates a new instance of Cookie.
name
The name of the cookie.
value
The value of the cookie.
Creates a new instance of Cookie.
name
The name of the cookie.
value
The value of the cookie.
domain
The domain, or partial domain, associated with the cookie.
Creates a new instance of Cookie.
name
The name of the cookie.
value
The value of the cookie.
expires
The expiration date/time of the cookie.
Creates a new instance of 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.
Boolean: Returns or sets a flag indicating that the cookie has been changed.
Boolean: Returns or sets a flag indicating that the cookie has been deleted.
String: Returns or sets the domain to associate the cookie with.
DateTime: Returns or sets the expiration date and time for the cookie.
Boolean: Returns or sets whether the cookie cookie is a cookie that has the HttpOnly attribute, which prevents client-side scripts from accessing the cookie's data. Since 4.0.0
String: Returns or sets the name for the Cookie.
Boolean: Returns or sets a flag indicating that the cookie is a new cookie (not received from the server).
CookieCollection: Reference to the collection that owns this cookie.
String: Returns or sets the path of the Cookie.
SameSiteMode: Returns or sets the value for the SameSite attribute of the cookie. The default value is Unspecified.
Boolean: Returns or sets whether to transmit the cookie using Secure Sockets Layer (SSL)--that is, over HTTPS only.
String: Returns or sets an individual cookie value.
Returns the string representation of the cookie.
Returns: String.