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

string

Expires

Gets or sets the expiration time for the cookie.

public DateTimeOffset? Expires { get; set; }

Property Value

DateTimeOffset?

HttpOnly

Gets or sets a value indicating whether the cookie is HTTP only.

public bool HttpOnly { get; set; }

Property Value

bool

MaxAge

Gets or sets the max age for the cookie.

public TimeSpan? MaxAge { get; set; }

Property Value

TimeSpan?

Path

Gets or sets the path for the cookie.

public string Path { get; set; }

Property Value

string

SameSite

Gets or sets the SameSite mode for the cookie.

public SameSiteMode SameSite { get; set; }

Property Value

SameSiteMode

Secure

Gets or sets a value indicating whether the cookie requires HTTPS.

public bool Secure { get; set; }

Property Value

bool