Bagikan melalui


CookieHandlerElement.PersistentSessionLifetime Properti

Definisi

Mendapatkan atau mengatur masa pakai cookie yang dikeluarkan oleh handler.

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

Nilai Properti

TimeSpan Yang mewakili masa pakai cookie. Defaultnya adalah 0 hari ("0.0:0:0"). Nilai harus berupa nilai antara 0 ("0,0:0:0") dan 365 ("365.0:0:0") hari.

Atribut

Keterangan

persistentSessionLifetime Mewakili atribut <elemen cookieHandler>.

Berlaku untuk

Lihat juga