다음을 통해 공유


FormsAuthenticationConfiguration.Cookieless 속성

정의

폼 기반 인증에 쿠키를 사용할지 여부를 나타내는 값을 가져오거나 설정합니다.

public:
 property System::Web::HttpCookieMode Cookieless { System::Web::HttpCookieMode get(); void set(System::Web::HttpCookieMode value); };
[System.Configuration.ConfigurationProperty("cookieless", DefaultValue=System.Web.HttpCookieMode.UseDeviceProfile)]
public System.Web.HttpCookieMode Cookieless { get; set; }
[<System.Configuration.ConfigurationProperty("cookieless", DefaultValue=System.Web.HttpCookieMode.UseDeviceProfile)>]
member this.Cookieless : System.Web.HttpCookieMode with get, set
Public Property Cookieless As HttpCookieMode

속성 값

HttpCookieMode 값 중 하나입니다. 기본값은 UseDeviceProfile입니다.

특성

예제

다음 코드 예제에 액세스 하는 방법에 설명 합니다 Cookieless 속성입니다. 코드 예제에서는 참조는 FormsAuthenticationConfiguration 클래스 항목의 섹션을 가져오는 방법을 알아봅니다.

           // Get current Cookieless.
           System.Web.HttpCookieMode currentCookieless = 
               formsAuthentication.Cookieless;

           // Set current Cookieless.
           formsAuthentication.Cookieless = 
               HttpCookieMode.AutoDetect;
' Get current Cookieless.
  Dim currentCookieless _
  As System.Web.HttpCookieMode = _
  formsAuthentication.Cookieless

' Set current Cookieless.
formsAuthentication.Cookieless = HttpCookieMode.AutoDetect

설명

Cookieless 속성 폼 기반 인증 사용자 정보를 교환 하는 쿠키를 사용할지 여부를 정의 합니다.

적용 대상

추가 정보