FormsAuthentication.FormsCookiePath Propriété
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient le chemin d'accès au cookie d'authentification par formulaire.
public:
static property System::String ^ FormsCookiePath { System::String ^ get(); };
public static string FormsCookiePath { get; }
member this.FormsCookiePath : string
Public Shared ReadOnly Property FormsCookiePath As String
Valeur de propriété
Chemin d'accès au 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 FormsCookiePath valeur de propriété à 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 de formulaires. Spécifie FormsCookiePath le Path cookie qui stocke les FormsAuthenticationTicket informations.