In startup.cs I configure session with no timeout
startup.cs
services.AddSession(options => { //options.IdleTimeout = TimeSpan.FromSecond