Share via


CookieOptions.MaxAge Property

Definition

Gets or sets the max-age for the cookie.

public:
 property Nullable<TimeSpan> MaxAge { Nullable<TimeSpan> get(); void set(Nullable<TimeSpan> value); };
public TimeSpan? MaxAge { get; set; }
member this.MaxAge : Nullable<TimeSpan> with get, set
Public Property MaxAge As Nullable(Of TimeSpan)

Property Value

The max-age date and time for the cookie.

Applies to