'Identity Server new loggedin user session not maintained

Identity server, new user session not maintained

On login page, I've logged in with User A and on successful login it redirects to Dashboard. Now, Using back button of browser, I am redirecting to login page and logged in with User B and on successful login it redirects to Dashboard page and it shows User A as logged in user instead of User B.

On logout, it logs out User A and then User B (I need to do multiple time logout to clear all loggedin users sessions) Also, HttpContext.Request.Cookies shows null every time

I am using await HttpContext.SignInAsync(isuser) to Signin and Signout user.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source