Bagikan melalui


SessionOptions.CookieHttpOnly Properti

Definisi

Perhatian

This property is obsolete and will be removed in a future version. The recommended alternative is Cookie.HttpOnly.

Properti ini kedaluarsa dan akan dihapus dalam versi mendatang. Alternatif yang disarankan adalah pada Cookie.

Menentukan apakah browser harus mengizinkan cookie diakses oleh JavaScript sisi klien. Defaultnya adalah true, yang berarti cookie hanya akan diteruskan ke permintaan HTTP dan tidak tersedia untuk skrip di halaman.

public:
 property bool CookieHttpOnly { bool get(); void set(bool value); };
public bool CookieHttpOnly { get; set; }
[System.Obsolete("This property is obsolete and will be removed in a future version. The recommended alternative is Cookie.HttpOnly.")]
public bool CookieHttpOnly { get; set; }
member this.CookieHttpOnly : bool with get, set
[<System.Obsolete("This property is obsolete and will be removed in a future version. The recommended alternative is Cookie.HttpOnly.")>]
member this.CookieHttpOnly : bool with get, set
Public Property CookieHttpOnly As Boolean

Nilai Properti

Atribut

Berlaku untuk