Share via


HttpCookie.MaxAge Property

Definition

Gets or sets the number of seconds until the cookie expires. A zero or negative number will expire the cookie immediately.

public double? MaxAge { get; set; }
member this.MaxAge : Nullable<double> with get, set
Public Property MaxAge As Nullable(Of Double)

Property Value

Applies to