Class CookieOptions
- Namespace
- Cratis.Arc.Http
- Assembly
- Cratis.Arc.Core.dll
Options for creating HTTP cookies.
public class CookieOptions
- Inheritance
-
CookieOptions
- Inherited Members
- Extension Methods
Constructors
CookieOptions()
public CookieOptions()
Properties
Domain
Gets or sets the domain for the cookie.
public string? Domain { get; set; }
Property Value
Expires
Gets or sets the expiration time for the cookie.
public DateTimeOffset? Expires { get; set; }
Property Value
HttpOnly
Gets or sets a value indicating whether the cookie is HTTP only.
public bool HttpOnly { get; set; }
Property Value
MaxAge
Gets or sets the max age for the cookie.
public TimeSpan? MaxAge { get; set; }
Property Value
Path
Gets or sets the path for the cookie.
public string Path { get; set; }
Property Value
SameSite
Gets or sets the SameSite mode for the cookie.
public SameSiteMode SameSite { get; set; }
Property Value
Secure
Gets or sets a value indicating whether the cookie requires HTTPS.
public bool Secure { get; set; }