共用方式為


OpenIdConnectAuthenticationOptions.UseTokenLifetime Property

 

Indicates that the authentication session lifetime (e.g. cookies) should match that of the authentication token. If the token does not provide lifetime information then normal session lifetimes will be used. This is enabled by default.

Namespace:   Microsoft.Owin.Security.OpenIdConnect
Assembly:  Microsoft.Owin.Security.OpenIdConnect (in Microsoft.Owin.Security.OpenIdConnect.dll)

Syntax

public bool UseTokenLifetime { get; set; }
public:
property bool UseTokenLifetime {
    bool get();
    void set(bool value);
}
member UseTokenLifetime : bool with get, set
Public Property UseTokenLifetime As Boolean

Property Value

Type: System.Boolean

Returns Boolean.

See Also

OpenIdConnectAuthenticationOptions Class
Microsoft.Owin.Security.OpenIdConnect Namespace

Return to top