RoleManagerSection.CookieRequireSSL 속성
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
역할 이름을 캐시하는 데 사용되는 쿠키가 서버에 반환되기 위해 SSL(Secure Sockets Layer) 연결이 필요한지 여부를 나타내는 값을 가져오거나 설정합니다.
public:
property bool CookieRequireSSL { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("cookieRequireSSL", DefaultValue=false)]
public bool CookieRequireSSL { get; set; }
[<System.Configuration.ConfigurationProperty("cookieRequireSSL", DefaultValue=false)>]
member this.CookieRequireSSL : bool with get, set
Public Property CookieRequireSSL As Boolean
속성 값
true역할 이름이 캐시되는 쿠키를 서버로 반환하기 위해 SSL 연결이 필요한 경우 그렇지 않으면 . false 기본값은 false입니다.
- 특성
예제
다음 코드 예제에서는 속성을 사용 하는 방법을 보여 줍니다 CookieRequireSSL . 이 코드 예제는 클래스에 제공된 더 큰 예제의 RoleManagerSection 일부입니다.
// Display CookieRequireSSL property.
Console.WriteLine("CookieRequireSSL: {0}",
configSection.CookieRequireSSL);
' Display CookieRequireSSL property.
Console.WriteLine("CookieRequireSSL: {0}", _
configSection.CookieRequireSSL)
설명
ASP.NET 애플리케이션의 Web.config 파일에서 특성을 설정 cookieRequireSSL 하여 역할 이름 쿠키를 서버에 반환하는 데 SSL이 필요한지 여부를 지정할 수 있습니다.