Läs på engelska

Dela via


HttpCookie.HttpOnly Property

Definition

Returns true if this cookie contains the HttpOnly attribute. -or- Indicates whether the cookie should be considered HTTP Only.

C#
public bool HttpOnly { [Android.Runtime.Register("isHttpOnly", "()Z", "", ApiSince=24)] get; [Android.Runtime.Register("setHttpOnly", "(Z)V", "", ApiSince=24)] set; }

Property Value

true if this cookie should be considered HTTPOnly

Attributes

Remarks

Property getter documentation:

Returns true if this cookie contains the HttpOnly attribute. This means that the cookie should not be accessible to scripting engines, like javascript.

Java documentation for java.net.HttpCookie.isHttpOnly().

Property setter documentation:

Indicates whether the cookie should be considered HTTP Only. If set to true it means the cookie should not be accessible to scripting engines like javascript.

Java documentation for java.net.HttpCookie.setHttpOnly(boolean).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

Produkt Versioner
.NET for Android .NET for Android API 34, .NET for Android API 35