SetCookieHeaderValue.MaxAge Vlastnost

Definice

Získá nebo nastaví hodnotu atributu cookie Max-Age .

Atribut Max-Age označuje maximální životnost souboru cookie reprezentovaný jako počet sekund, dokud platnost souboru cookie nevyprší.

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)

Hodnota vlastnosti

Nullable<TimeSpan>

Poznámky

Viz třída https://tools.ietf.org/html/rfc6265#section-4.1.2.2.

Platí pro