SessionOptions.CookieSecure Property

Definition

Caution

This property is obsolete and will be removed in a future version. The recommended alternative is Cookie.SecurePolicy.

This property is obsolete and will be removed in a future version. The recommended alternative is on Cookie.

Determines if the cookie should only be transmitted on HTTPS requests.

public Microsoft.AspNetCore.Http.CookieSecurePolicy CookieSecure { get; set; }
[System.Obsolete("This property is obsolete and will be removed in a future version. The recommended alternative is Cookie.SecurePolicy.")]
public Microsoft.AspNetCore.Http.CookieSecurePolicy CookieSecure { get; set; }

Property Value

Attributes

Applies to

Product Versions (Obsolete)
ASP.NET Core 1.1 (2.0, 2.1, 2.2)