If you use a value for session expiration longer than 1 hour, the expiration is calculated incorrectly because it uses the Minutes property of the session timeout configuration rather than TotalMinutes. Modifying the code to use TotalMinutes (cast to an int as necessary) solves this problem.
If you use a value for session expiration longer than 1 hour, the expiration is calculated incorrectly because it uses the Minutes property of the session timeout configuration rather than TotalMinutes. Modifying the code to use TotalMinutes (cast to an int as necessary) solves this problem.