Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
SessionOptions.CookieSecure Property
Definition
- Namespace:
- Microsoft.AspNetCore.Builder
- Assembly:
- Microsoft.AspNetCore.Session.dll
- Package:
- Microsoft.AspNetCore.Session v1.1.0
- Package:
- Microsoft.AspNetCore.Session v2.0.0
- Package:
- Microsoft.AspNetCore.Session v2.1.0
- Package:
- Microsoft.AspNetCore.Session v2.2.0
- Source:
- SessionOptions.cs
- Source:
- SessionOptions.cs
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 <seealso cref="P:Microsoft.AspNetCore.Http.CookieBuilder.SecurePolicy"></seealso> on Cookie.
Determines if the cookie should only be transmitted on HTTPS requests.
public:
property Microsoft::AspNetCore::Http::CookieSecurePolicy CookieSecure { Microsoft::AspNetCore::Http::CookieSecurePolicy get(); void set(Microsoft::AspNetCore::Http::CookieSecurePolicy value); };
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; }
member this.CookieSecure : Microsoft.AspNetCore.Http.CookieSecurePolicy with get, set
[<System.Obsolete("This property is obsolete and will be removed in a future version. The recommended alternative is Cookie.SecurePolicy.")>]
member this.CookieSecure : Microsoft.AspNetCore.Http.CookieSecurePolicy with get, set
Public Property CookieSecure As CookieSecurePolicy
Property Value
- Attributes
Applies to
Feedback
Was this page helpful?
