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
Samarbeid med oss på GitHub
Du finner kilden for dette innholdet på GitHub. Der du også kan opprette og se gjennom problemer og pull-forespørsler. Hvis du vil ha mer informasjon, kan du se vår bidragsyterveiledning.