HttpCookie.Secure Property

Definition

Returns true if sending this cookie should be restricted to a secure protocol, or false if the it can be sent using any protocol. -or- Indicates whether the cookie should only be sent using a secure protocol, such as HTTPS or SSL.

public bool Secure { [Android.Runtime.Register("getSecure", "()Z", "")] get; [Android.Runtime.Register("setSecure", "(Z)V", "")] set; }
[<get: Android.Runtime.Register("getSecure", "()Z", "")>]
[<set: Android.Runtime.Register("setSecure", "(Z)V", "")>]
member this.Secure : bool with get, set

Property Value

false if the cookie can be sent over any standard protocol; otherwise, true

Attributes

Remarks

Property getter documentation:

Returns true if sending this cookie should be restricted to a secure protocol, or false if the it can be sent using any protocol.

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

Property setter documentation:

Indicates whether the cookie should only be sent using a secure protocol, such as HTTPS or SSL.

The default value is false.

Java documentation for java.net.HttpCookie.setSecure(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