Share via


CookieHandlerElement.PersistentSessionLifetime Proprietà

Definizione

Ottiene o imposta la durata dei cookie rilasciati dal gestore.

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

Valore della proprietà

TimeSpan che rappresenta la durata del cookie. Il valore predefinito è 0 giorni ("0.0:0:0"). Il valore deve essere un valore compreso tra 0 ("0.0:0:0") e 365 ("365.0:0:0") giorni.

Attributi

Commenti

Rappresenta l'attributo dell'elemento persistentSessionLifetime<cookieHandler> .

Si applica a

Vedi anche