SessionSecurityTokenHandler.TokenLifetime Property

.NET Framework (current version)
 

Gets or sets the token lifetime.

Namespace:   System.IdentityModel.Tokens
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

public virtual TimeSpan TokenLifetime { get; set; }

Property Value

Type: System.TimeSpan

The token lifetime. The default is DefaultLifetime.

Exception Condition
ArgumentException

An attempt to set a time span that is less than or equal to zero occurs.

By default, if the <sessionTokenRequirement> element is specified in the configuration file, the TokenLifetime property is initialized to the value of the lifetime attribute by the LoadCustomConfiguration method.

.NET Framework
Available since 4.5
Return to top
Show: