FormsAuthentication.FormsCookiePath Eigenschaft
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Ruft den Pfad für das Formularauthentifizierungscookie ab.
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
Eigenschaftswert
Der Pfad des Cookies, in dem die Informationen zum Formularauthentifizierungsticket gespeichert sind. Der Standardwert ist "/".
Beispiele
Im folgenden Codebeispiel wird der FormsCookiePath Eigenschaftswert mithilfe des path
Attributs in der Web.config-Datei festgelegt.
<authentication mode="Forms">
<forms loginUrl="member_login.aspx"
cookieless="UseCookies"
path="/MyApplication" />
</authentication>
Hinweise
Der FormsCookiePath Eigenschaftswert wird in der Konfigurationsdatei für eine ASP.NET Anwendung mit dem path
Attribut des Formularkonfigurationselements festgelegt. Das FormsCookiePath gibt den Path Cookie an, der die FormsAuthenticationTicket Informationen speichert.