다음을 통해 공유


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

속성 값

trueSSL을 사용하는 경우 그렇지 않으면 . 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입니다.

적용 대상

추가 정보