Freigeben über


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

Einer der HttpCookieMode-Werte. Der Standardwert ist UseDeviceProfile.

Attribute

Beispiele

Im folgenden Codebeispiel wird der Zugriff auf die Cookieless Eigenschaft veranschaulicht. Lesen Sie das Codebeispiel im FormsAuthenticationConfiguration Klassenthema, um zu erfahren, wie Sie den Abschnitt abrufen.

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