CookieOptions Class
Abblix.Oidc.Server
Abblix.Oidc.Server.Common
CookieOptions Class
Represents options for an HTTP cookie, including properties for HTTP-only, essential, secure, path, domain, SameSite attribute, expiration, and maximum age.
public record CookieOptions : System.IEquatable<Abblix.Oidc.Server.Common.CookieOptions>
Inheritance System.Object → CookieOptions
Implements System.IEquatable<CookieOptions>
Properties
CookieOptions.Domain Property
The domain for which the cookie is valid.
public string? Domain { get; set; }
Property Value
CookieOptions.Expires Property
The expiration date and time of the cookie.
public System.Nullable<System.DateTimeOffset> Expires { get; set; }
Property Value
System.Nullable<System.DateTimeOffset>
CookieOptions.HttpOnly Property
Indicates if the cookie is accessible only through HTTP.
public bool HttpOnly { get; set; }
Property Value
CookieOptions.IsEssential Property
Indicates if the cookie is essential for the application's functionality.
public bool IsEssential { get; set; }
Property Value
CookieOptions.MaxAge Property
The maximum age of the cookie as a time span.
public System.Nullable<System.TimeSpan> MaxAge { get; set; }
Property Value
System.Nullable<System.TimeSpan>
CookieOptions.Path Property
The path for which the cookie is valid.
public string? Path { get; set; }
Property Value
CookieOptions.SameSite Property
The SameSite attribute of the cookie.
public string? SameSite { get; set; }
Property Value
CookieOptions.Secure Property
Indicates if the cookie should only be sent over secure channels (HTTPS).
public bool Secure { get; set; }