Partager via


FormsAuthentication.FormsCookiePath Propriété

Définition

Obtient le chemin d’accès du cookie d’authentification par formulaire.

public:
 static property System::String ^ FormsCookiePath { System::String ^ get(); };
public static string FormsCookiePath { get; }
static member FormsCookiePath : string
Public Shared ReadOnly Property FormsCookiePath As String

Valeur de propriété

Chemin d’accès du cookie dans lequel les informations de ticket d’authentification par formulaire sont stockées. La valeur par défaut est « / ».

Exemples

L’exemple de code suivant définit la valeur de propriété FormsCookiePath à l’aide de l’attribut path dans le fichier Web.config.

<authentication mode="Forms">
  <forms loginUrl="member_login.aspx"
    cookieless="UseCookies"
    path="/MyApplication" />
</authentication>

Remarques

La FormsCookiePath valeur de propriété est définie dans le fichier de configuration d’une application ASP.NET à l’aide de l’attribut path de l’élément de configuration forms . Spécifie FormsCookiePath le Path cookie qui stocke les FormsAuthenticationTicket informations.

S’applique à

Voir aussi