Partager via


AnonymousIdentificationSection.CookiePath Propriété

Définition

Obtient ou définit le chemin d’accès où le cookie est stocké.

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

Valeur de propriété

Chemin d’accès du cookie HTTP à utiliser pour l’identification anonyme de l’utilisateur. La valeur par défaut est une barre oblique (/), qui représente la racine de l’application web.

Attributs

Exemples

L’exemple de code suivant montre comment accéder à la CookiePath propriété.

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

Remarques

La CookiePath propriété indique l’emplacement du cookie d’authentification et est transmise avec le cookie d’authentification lui-même.

S’applique à