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
Feedback
https://aka.ms/ContentUserFeedback.
În curând: Pe parcursul anului 2024, vom elimina treptat Probleme legate de GitHub ca mecanism de feedback pentru conținut și îl vom înlocui cu un nou sistem de feedback. Pentru mai multe informații, consultați:Trimiteți și vizualizați feedback pentru