Delay between PostMapRequestHandler event and AcquireRequestState event

I encounter a strange delay between subject events (more or less than 500 ms every call).

I posted the logs and profiling in the handlers in Global.asax Application_PostMapRequestHandler() and Application_AcquireRequestState() and found such a problem.

What is the reason for this slowness?

+4
source share
1 answer

This is because if the session state is enabled for the controller, then only one request will be performed for each session.

Further information is available in the next answer - see the second answer.

IRequiresSessionState vs IReadOnlySessionState

+4
source

Source: https://habr.com/ru/post/1502457/


All Articles