Property SetCookie
SetCookie
Gets or sets the value of the HTTP Set-Cookie header.
Used to send cookies from the server to the client, allowing the server to store state information on the client.
public string? SetCookie { get; set; }
Property Value
Remarks
Note: setting this property, it will override all previous Set-Cookie headers. Use the Add(string, string) method to add more than one Set-Cookie header or use the SetCookie(string, string) method.