Freigeben über


FormsAuthenticationConfiguration.Cookieless Eigenschaft

Definition

Dient zum Abrufen oder Festlegen eines Werts, der angibt, ob die formularbasierte Authentifizierung Cookies verwenden soll.

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

Eigenschaftswert

Einer der HttpCookieMode Werte. Der Standardwert ist UseDeviceProfile.

Attribute

Beispiele

Im folgenden Codebeispiel wird veranschaulicht, wie auf die Cookieless Eigenschaft zugegriffen wird. Weitere Informationen zum Abrufen des Abschnitts finden Sie im Codebeispiel im FormsAuthenticationConfiguration Klassenthema.

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

Hinweise

Die Cookieless Eigenschaft definiert, ob die formularbasierte Authentifizierung ein Cookie verwenden soll, um Benutzerinformationen auszutauschen.

Gilt für:

Weitere Informationen