Share via


CookieHandlerElement.PersistentSessionLifetime Vlastnost

Definice

Získá nebo nastaví životnost souborů cookie vystavených obslužnou rutinou.

public:
 property TimeSpan PersistentSessionLifetime { TimeSpan get(); void set(TimeSpan value); };
[System.Configuration.ConfigurationProperty("persistentSessionLifetime", DefaultValue="0:0:0", IsRequired=false)]
[System.Configuration.TimeSpanValidator(MaxValueString="365.0:0:0", MinValueString="0:0:0")]
public TimeSpan PersistentSessionLifetime { get; set; }
[<System.Configuration.ConfigurationProperty("persistentSessionLifetime", DefaultValue="0:0:0", IsRequired=false)>]
[<System.Configuration.TimeSpanValidator(MaxValueString="365.0:0:0", MinValueString="0:0:0")>]
member this.PersistentSessionLifetime : TimeSpan with get, set
Public Property PersistentSessionLifetime As TimeSpan

Hodnota vlastnosti

A TimeSpan , který představuje životnost souboru cookie. Výchozí hodnota je 0 dnů ("0.0:0:0"). Hodnota musí být hodnota mezi 0 ("0.0:0:0") a 365 ("365.0:0:0") dnů.

Atributy

Poznámky

persistentSessionLifetime Představuje atribut <cookieHandler> element.

Platí pro

Viz také