FormsAuthenticationConfiguration.Cookieless Eigenschaft

Definition

Ruft einen Wert ab, der angibt, ob für die formularbasierte Authentifizierung Cookies verwendet werden müssen, oder legt diesen fest.

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

HttpCookieMode

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 zum Austauschen von Benutzerinformationen verwenden soll.

Gilt für

Siehe auch