共用方式為


LocalServiceSecuritySettingsElement.IssuedCookieLifetime 屬性

定義

取得或設定 TimeSpan,這個項目會指定發出給所有新的安全性 Cookie 的存留期 (Lifetime)。

public:
 property TimeSpan IssuedCookieLifetime { TimeSpan get(); void set(TimeSpan value); };
[System.ComponentModel.TypeConverter(typeof(System.ServiceModel.TimeSpanOrInfiniteConverter))]
[System.Configuration.ConfigurationProperty("issuedCookieLifetime", DefaultValue="10:00:00")]
public TimeSpan IssuedCookieLifetime { get; set; }
[System.Configuration.ConfigurationProperty("issuedCookieLifetime", DefaultValue="10:00:00")]
[System.ComponentModel.TypeConverter(typeof(System.Runtime.TimeSpanOrInfiniteConverter))]
public TimeSpan IssuedCookieLifetime { get; set; }
[System.Configuration.ConfigurationProperty("issuedCookieLifetime", DefaultValue="10:00:00")]
[System.ComponentModel.TypeConverter(typeof(System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter))]
public TimeSpan IssuedCookieLifetime { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.ServiceModel.TimeSpanOrInfiniteConverter))>]
[<System.Configuration.ConfigurationProperty("issuedCookieLifetime", DefaultValue="10:00:00")>]
member this.IssuedCookieLifetime : TimeSpan with get, set
[<System.Configuration.ConfigurationProperty("issuedCookieLifetime", DefaultValue="10:00:00")>]
[<System.ComponentModel.TypeConverter(typeof(System.Runtime.TimeSpanOrInfiniteConverter))>]
member this.IssuedCookieLifetime : TimeSpan with get, set
[<System.Configuration.ConfigurationProperty("issuedCookieLifetime", DefaultValue="10:00:00")>]
[<System.ComponentModel.TypeConverter(typeof(System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter))>]
member this.IssuedCookieLifetime : TimeSpan with get, set
Public Property IssuedCookieLifetime As TimeSpan

屬性值

TimeSpan,指定發出給所有新的安全性 Cookie 的存留期。 預設值為 "10:00:00"。

屬性

備註

超過存留期的 Cookie 會回收,而且必須再次交涉。

適用於