LocalServiceSecuritySettingsElement.IssuedCookieLifetime 属性

定义

获取或设置一个 TimeSpan,它指定颁发给所有新安全 Cookie 的生存期。

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

一个 TimeSpan,指定颁发给所有新安全 Cookie 的生存期。 默认值为“10:00:00”。

属性

注解

超过生存期的 Cookie 会被回收,且必须再次对其进行协商。

适用于