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
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για