You need to add one more line in “/App_Start/Startup.Auth.cs”. Open Startup.Auth.cs, add this line: ExpireTimeSpan = TimeSpan.FromMinutes(1) See image below to understand more.

https://padlet-uploads.storage.googleapis.com/1196811780/3354f2cba2eb5b6f7177189d08ef3b9d/logintimeout2.jpg

Video demo:

https://drive.google.com/file/d/1GcA3QFbIxkjQ63r50vJAIVTEYP_UJplQ/view?usp=sharing

However, we are not so sure whether this solution worked in hosting server, if you are going to publish and host this project, and you found this is not working in hosting server, please contact your hosting server support team to get more information.