FormsAuthentication.FormsCookiePath Eigenschaft
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; }
static member FormsCookiePath : string
Public Shared ReadOnly Property FormsCookiePath As String
Der Pfad des Cookies, in dem die Informationen zum Formularauthentifizierungsticket gespeichert sind. Der Standardwert ist "/".
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>
Der FormsCookiePath Eigenschaftswert wird in der Konfigurationsdatei für eine ASP.NET-Anwendung unter Verwendung des path
Attributs des forms-Konfigurationselements festgelegt. Gibt FormsCookiePath den Path für das Cookie an, das die FormsAuthenticationTicket Informationen speichert.
Produkt | Versionen |
---|---|
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Feedback zu .NET
.NET ist ein Open Source-Projekt. Wählen Sie einen Link aus, um Feedback zu geben: