AnonymousIdentificationSection.Cookieless Egenskap
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Hämtar eller anger ett värde som anger om cookies ska användas.
public:
property System::Web::HttpCookieMode Cookieless { System::Web::HttpCookieMode get(); void set(System::Web::HttpCookieMode value); };
[System.Configuration.ConfigurationProperty("cookieless", DefaultValue=System.Web.HttpCookieMode.UseCookies)]
public System.Web.HttpCookieMode Cookieless { get; set; }
[<System.Configuration.ConfigurationProperty("cookieless", DefaultValue=System.Web.HttpCookieMode.UseCookies)>]
member this.Cookieless : System.Web.HttpCookieMode with get, set
Public Property Cookieless As HttpCookieMode
Egenskapsvärde
Ett av HttpCookieMode värdena. Standardvärdet är UseDeviceProfile.
- Attribut
Exempel
Följande kodexempel visar hur du kommer åt egenskapen Cookieless .
// Get Cookieless.
System.Web.HttpCookieMode cookieless =
anonymousIdentificationSection.Cookieless;
Console.WriteLine("Cookieless: {0}",
cookieless);
' Get Cookieless.
Dim cookieless _
As System.Web.HttpCookieMode = _
anonymousIdentificationSection.Cookieless
Console.WriteLine("Cookieless: {0}", cookieless)
Kommentarer
Egenskapen Cookieless definierar när en cookie ska användas för att underhålla information om användaren.
När egenskapen Cookieless är inställd på UseCookieslagras användarens identifierare i en cookie. Mer information finns i HttpCookieMode.
Note
ASP.NET lagrar användarens anonyma identifierare inom URI-sökvägen (det vill den körs i cookielöst läge) om egenskapen Cookieless är inställd på något av följande värden: UseUri; UseDeviceProfile när webbläsarprofilen anger att cookies inte stöds eller AutoDetect när processen för automatisk identifiering fastställer att webbläsaren inte stöder cookies. Om storleken på URI:n och den anonyma identifieraren överskrider den tillåtna längden tillämpas inte den anonyma identifieraren.