CookieHandlerElement.RequireSsl Property
Definition
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.
Gets or sets a value that specifies whether the cookie should be used only with SSL.
public:
property bool RequireSsl { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("requireSsl", DefaultValue=true, IsRequired=false)]
public bool RequireSsl { get; set; }
[<System.Configuration.ConfigurationProperty("requireSsl", DefaultValue=true, IsRequired=false)>]
member this.RequireSsl : bool with get, set
Public Property RequireSsl As Boolean
Property Value
true
if the cookie should only be used over an SSL connection; otherwise, false
. The default is true
.
- Attributes
Remarks
Controls whether the "Secure" flag is emitted for any cookies written. If this value is true
, the sign-in session cookies will only be available over HTTPS.
Represents the requireSSL
attribute of the <cookieHandler> element.
Applies to
See also
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.