HttpCookie.MaxAge Property

Definition

Returns the maximum age of the cookie, specified in seconds. -or- Sets the maximum age of the cookie in seconds.

public long MaxAge { [Android.Runtime.Register("getMaxAge", "()J", "")] get; [Android.Runtime.Register("setMaxAge", "(J)V", "")] set; }
[<get: Android.Runtime.Register("getMaxAge", "()J", "")>]
[<set: Android.Runtime.Register("setMaxAge", "(J)V", "")>]
member this.MaxAge : int64 with get, set

Property Value

Int64

an integer specifying the maximum age of the cookie in seconds

Attributes

Remarks

Property getter documentation:

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

Property setter documentation:

Java documentation for java.net.HttpCookie.setMaxAge(long).

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