HttpCookiesSection.RequireSSL 속성

정의

SSL(Secure Sockets Layer) 통신이 필요한지 여부를 나타내는 값을 가져오거나 설정합니다.

이 API는 제품 인프라를 지원하며 코드에서 직접 사용되지 않습니다.

public:
 property bool RequireSSL { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("requireSSL", DefaultValue=false)]
public bool RequireSSL { get; set; }
[<System.Configuration.ConfigurationProperty("requireSSL", DefaultValue=false)>]
member this.RequireSSL : bool with get, set
Public Property RequireSSL As Boolean

속성 값

Boolean

SSL이 활성화되면 true이고, 그렇지 않으면 false입니다. 기본값은 false입니다.

특성

예제

다음 코드 예제에서는 RequireSSL 속성을 사용하는 방법을 보여 줍니다.


// Get the current RequireSSL.
Boolean requireSSLValue = 
    httpCookiesSection.RequireSSL;

// Set the RequireSSL.
httpCookiesSection.RequireSSL = 
    false;

' Get the current RequireSSL.
Dim requireSSLValue As Boolean = _
httpCookiesSection.RequireSSL

' Set the RequireSSL.
httpCookiesSection.RequireSSL = _
False

설명

RequireSSL 속성 하거나 RFC 2109에 설명 된 대로 보안 쿠키 특성의 출력을 사용 하지 않도록 설정 합니다. 호환 브라우저에서 사용할 쿠키만 SSL/TLS를 사용 하 여 연결을 통해 다시 전송 됩니다. 기본값은 false입니다.

적용 대상

추가 정보