CookieAuthenticationOptions.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 request. The default is to limit the cookie to HTTPS requests if the page which is doing the SignIn is also HTTPS. If you have an HTTPS sign in page and portions of your site are HTTP you may need to change this value.

C#
[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

Produkt Verzie (Zastarané)
ASP.NET Core (2.0, 2.1, 2.2)