ASP.Net FormsAuthentication Redirect Loses the cookie between Redirect and Application_AuthenticateRequest

前端 未结 2 493
误落风尘
误落风尘 2020-12-11 23:15

I have a FormsAuthentication cookie that is persistent and works independently in a development, test, and production environment. I have a user that can authenticate, the u

2条回答
  •  时光取名叫无心
    2020-12-12 00:05

    A potential issue is the way you redirect; by setting the boolean value to true you send a ThreadAbortException and you may lose the session token. Either set the boolean value to false or use FormsAuthentication.RedirectFromLoginPage

提交回复
热议问题