Bagikan melalui


SetCookieHeaderValue.HttpOnly Properti

Definisi

Mendapatkan atau menetapkan nilai untuk HttpOnly atribut cookie.

HttpOnly menginstruksikan agen pengguna untuk menghilangkan cookie saat memberikan akses ke cookie melalui API "non-HTTP" (seperti API browser web yang mengekspos cookie ke skrip).

public:
 property bool HttpOnly { bool get(); void set(bool value); };
public bool HttpOnly { get; set; }
member this.HttpOnly : bool with get, set
Public Property HttpOnly As Boolean

Nilai Properti

Keterangan

Lihat https://tools.ietf.org/html/rfc6265#section-4.1.2.6.

Berlaku untuk