CookieHandlerElement::RequireSsl Property
.NET Framework (current version)
Gets or sets a value that specifies whether the cookie should be used only with SSL.
Assembly: System.IdentityModel.Services (in System.IdentityModel.Services.dll)
public: [ConfigurationPropertyAttribute("requireSsl", IsRequired = false, DefaultValue = true)] property bool RequireSsl { bool get(); void set(bool value); }
Property Value
Type: System::Booleantrue if the cookie should only be used over an SSL connection; otherwise, false. The default is true.
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.
.NET Framework
Available since 4.5
Available since 4.5
Show: