diff --git a/src/Microsoft.AspNetCore.Identity.Service/SessionManager.cs b/src/Microsoft.AspNetCore.Identity.Service/SessionManager.cs index 7b302d3cc7..c83f9df2c0 100644 --- a/src/Microsoft.AspNetCore.Identity.Service/SessionManager.cs +++ b/src/Microsoft.AspNetCore.Identity.Service/SessionManager.cs @@ -123,7 +123,7 @@ namespace Microsoft.AspNetCore.Identity.Service var clientId = application.FindFirstValue(IdentityServiceClaimTypes.ClientId); var logoutUris = application.FindAll(IdentityServiceClaimTypes.LogoutRedirectUri); - var duration = _sessionCookieOptions.ExpireTimeSpan; + var duration = _sessionCookieOptions.Cookie.Expiration ?? default(TimeSpan); var expiration = _timeStampManager.GetTimeStampInEpochTime(duration); var identity = new ClaimsIdentity(