AcquireRequestState vs PreExecuteRequestHandler

前端 未结 1 1915
忘掉有多难
忘掉有多难 2021-01-01 23:17

We picked up quite a high number of ajax calls taking a significant amount of time in AcquireRequestState, in our travels we stumbled upon the session locking gem in ASP.Net

相关标签:
1条回答
  • 2021-01-01 23:34

    For anyone trying to rule out the session problem we ultimately faced above, but who still needs to rely on session values (so you can't just disable the session on the controller level) have a look at the following sessionstate provider:

    https://github.com/aspnet/AspNetSessionState

    Specifically make sure you pay attention to the following application setting:

    <add key="aspnet:AllowConcurrentRequestsPerSession" value="[bool]"/>

    You will need to upgrade to .Net Framework 4.6.2 but in our case it's a small price to pay.

    0 讨论(0)
提交回复
热议问题