AnonymousIdentificationSection.CookiePath Eigenschap

Definitie

Hiermee haalt u het pad op waar de cookie is opgeslagen of stelt u het in.

public:
 property System::String ^ CookiePath { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("cookiePath", DefaultValue="/")]
[System.Configuration.StringValidator(MinLength=1)]
public string CookiePath { get; set; }
[<System.Configuration.ConfigurationProperty("cookiePath", DefaultValue="/")>]
[<System.Configuration.StringValidator(MinLength=1)>]
member this.CookiePath : string with get, set
Public Property CookiePath As String

Waarde van eigenschap

Het pad van de HTTP-cookie die moet worden gebruikt voor de anonieme identificatie van de gebruiker. De standaardwaarde is een slash (/), die de hoofdmap van de webtoepassing vertegenwoordigt.

Kenmerken

Voorbeelden

In het volgende codevoorbeeld ziet u hoe u toegang hebt tot de CookiePath eigenschap.

// Get CookiePath.
string cookiePath = 
    anonymousIdentificationSection.CookiePath;
Console.WriteLine("Cookie path: {0}", cookiePath);
' Get CookiePath.
Dim cookiePath As String = _
anonymousIdentificationSection.CookiePath
Console.WriteLine("Cookie path: {0}", cookiePath)

Opmerkingen

De CookiePath eigenschap geeft aan waar de verificatiecooky zich bevindt en wordt verzonden samen met de verificatiecooky zelf.

Van toepassing op