Can anyone help me in this ? i login in dashboard But browser back button fetch me again to login page. and i logout dashboard i end my session but login page issue. again click on back button again i am on dashboard with my session.
Login Issue
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Vikas PanwarRank #1,447 · 1.1K reputationPosted Dec 19, 2022, 8:32 AM EST
Please check these URL
Pankajkumar PatelRank #181 · 13.4K reputationPosted Dec 19, 2022, 8:32 AM EST
Hi Ajay Chauhan,
You can manually stored in cookies dashboard url and validate the identity its working fine as like following:
var claims = new[] { new Claim(ClaimTypes.Name, userInfo.Name), new Claim(ClaimTypes.Role, userInfo.Category), new Claim(ClaimTypes.Uri, "/Home/Dashboard"), new Claim("UserId", userInfo.UserId), new Claim("Id", userInfo.Id)}; public IActionResult Login() { if (HttpContext.User.Identity.IsAuthenticated) { return Redirect(HttpContext.User.FindFirst(ClaimTypes.Uri).Value); } return View(); }For more details:
Hope this will help you!