FormsAuthentication.FormsCookiePath Properti
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Mendapatkan jalur untuk cookie autentikasi formulir.
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
Nilai Properti
Jalur cookie tempat informasi tiket autentikasi formulir disimpan. Defaultnya adalah "/".
Contoh
Contoh kode berikut mengatur FormsCookiePath nilai properti dengan menggunakan path
atribut dalam file Web.config.
<authentication mode="Forms">
<forms loginUrl="member_login.aspx"
cookieless="UseCookies"
path="/MyApplication" />
</authentication>
Keterangan
Nilai FormsCookiePath properti diatur dalam file konfigurasi untuk aplikasi ASP.NET menggunakan path
atribut elemen konfigurasi formulir .
FormsCookiePath menentukan Path untuk cookie yang menyimpan FormsAuthenticationTicket informasi.