CookieHandlerElement.PersistentSessionLifetime Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the lifetime of cookies issued by the 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
Property Value
A TimeSpan that represents the cookie lifetime. The default is 0 days ("0.0:0:0"). The value must be a value between 0 ("0.0:0:0") and 365 ("365.0:0:0") days.
- Attributes
Remarks
Represents the persistentSessionLifetime
attribute of the <cookieHandler> element.
Applies to
See also
Tee yhteistyötä kanssamme GitHubissa
Tämän sisällön lähde on GitHubissa, jossa voit myös luoda ja tarkastella ongelmia ja pull-pyyntöjä. Katso lisätietoja osallistujan oppaasta.