Freigeben über


SetCookieHeaderValue.HttpOnly Eigenschaft

Definition

Ruft einen Wert für das Cookie-Attribut ab oder legt diese HttpOnly fest.

HttpOnly weist den Benutzer-Agent an, das Cookie bei der Bereitstellung des Zugriffs auf Cookies über "Non-HTTP"-APIs (z. B. eine Webbrowser-API, die Cookies für Skripts verfügbar macht) wegzulassen.

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

Eigenschaftswert

Hinweise

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

Gilt für: