CookieHandlerElement.RequireSsl Property

Definition

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