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

前端 未结 2 494
误落风尘
误落风尘 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-11 23:56

    It turns out that the cookie data being dumped into the cookie for this particular user happened to exceed the maximum allowed size in its encrypted format. Unencrypted, the data fit, but once the encryption was run on it the size grew too large to handle. This caused the cookie and any cookies added after it to be dropped from the response header.

    Chopping the amount of data injected into the cookie solved the issue.

提交回复
热议问题