CookieHandlerElement.RequireSsl プロパティ

定義

Cookie を 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

プロパティ値

true クッキーを SSL 接続経由でのみ使用する必要がある場合。それ以外の場合は false。 既定値は true です。

属性

注釈

書き込まれた Cookie に対して "Secure" フラグが出力されるかどうかを制御します。 この値が trueの場合、サインイン セッション Cookie は HTTPS 経由でのみ使用できます。

requireSSL 要素の<属性を表します。

適用対象

こちらもご覧ください