Class Cookie
Cookie object
public sealed class Cookie
- Inheritance
-
Cookie
- Inherited Members
Properties
Domain
Cookie domain.
[JsonPropertyName("domain")]
public string Domain { get; set; }
Property Value
Expires
Cookie expiration date as the number of seconds since the UNIX epoch. The value is set to -1 if the expiry date is not set. The value can be null for values that cannot be represented in JSON (±Inf).
[JsonPropertyName("expires")]
public double Expires { get; set; }
Property Value
HttpOnly
True if cookie is http-only.
[JsonPropertyName("httpOnly")]
public bool HttpOnly { get; set; }
Property Value
Name
Cookie name.
[JsonPropertyName("name")]
public string Name { get; set; }
Property Value
PartitionKey
Cookie partition key.
[JsonPropertyName("partitionKey")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public CookiePartitionKey? PartitionKey { get; set; }
Property Value
PartitionKeyOpaque
True if cookie partition key is opaque.
[JsonPropertyName("partitionKeyOpaque")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public bool? PartitionKeyOpaque { get; set; }
Property Value
- bool?
Path
Cookie path.
[JsonPropertyName("path")]
public string Path { get; set; }
Property Value
Priority
Cookie Priority
[JsonPropertyName("priority")]
public CookiePriority Priority { get; set; }
Property Value
SameSite
Cookie SameSite type.
[JsonPropertyName("sameSite")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public CookieSameSite? SameSite { get; set; }
Property Value
Secure
True if cookie is secure.
[JsonPropertyName("secure")]
public bool Secure { get; set; }
Property Value
Session
True in case of session cookie.
[JsonPropertyName("session")]
public bool Session { get; set; }
Property Value
Size
Cookie size.
[JsonPropertyName("size")]
public long Size { get; set; }
Property Value
SourcePort
Cookie source port. Valid values are {-1, [1, 65535]}, -1 indicates an unspecified port. An unspecified port value allows protocol clients to emulate legacy cookie scope for the port. This is a temporary ability and it will be removed in the future.
[JsonPropertyName("sourcePort")]
public long SourcePort { get; set; }
Property Value
SourceScheme
Cookie source scheme type.
[JsonPropertyName("sourceScheme")]
public CookieSourceScheme SourceScheme { get; set; }
Property Value
Value
Cookie value.
[JsonPropertyName("value")]
public string Value { get; set; }