共用方式為


SPSecurityTokenServiceManager.LogonTokenCacheExpirationWindow Property

Gets or sets the minimum lifetime of a token returned from the logon token cache.

Namespace:  Microsoft.SharePoint.Administration.Claims
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Property LogonTokenCacheExpirationWindow As TimeSpan
    Get
    Set
'Usage
Dim instance As SPSecurityTokenServiceManager
Dim value As TimeSpan

value = instance.LogonTokenCacheExpirationWindow

instance.LogonTokenCacheExpirationWindow = value
public TimeSpan LogonTokenCacheExpirationWindow { get; set; }

Property Value

Type: System.TimeSpan
The lifetime of the token. The default value is 10 minutes.

Remarks

Tokens which are currently valid, but will be expired after the time specified in the window, will be considered as expired. This is to avoid issues where the token is returned from the cache but expires immediately after and is therefore unusable.

See Also

Reference

SPSecurityTokenServiceManager Class

SPSecurityTokenServiceManager Members

Microsoft.SharePoint.Administration.Claims Namespace