다음을 통해 공유


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 양식 기반 인증에서 쿠키를 사용하여 사용자 정보를 교환해야 하는지 여부를 정의합니다.

적용 대상

추가 정보