FormsAuthenticationConfiguration.Cookieless Właściwość

Definicja

Pobiera lub ustawia wartość wskazującą, czy uwierzytelnianie oparte na formularzach powinno używać plików cookie.

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

Wartość właściwości

HttpCookieMode

Jedna z HttpCookieMode wartości. Wartość domyślna to UseDeviceProfile.

Atrybuty

Przykłady

W poniższym przykładzie kodu pokazano, jak uzyskać dostęp Cookieless do właściwości. Zapoznaj się z przykładem kodu w temacie klasy, FormsAuthenticationConfiguration aby dowiedzieć się, jak uzyskać sekcję.

           // 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

Uwagi

Właściwość Cookieless określa, czy uwierzytelnianie oparte na formularzach powinno używać pliku cookie do wymiany informacji o użytkowniku.

Dotyczy

Zobacz też