ASP.NET MVC 5 concurrent requests are queued even with disabled Session

后端 未结 2 761
萌比男神i
萌比男神i 2020-12-17 17:14

Before thinking about downvoting or telling me \"google it\", please read the problem more carefully. This is old/classic problem but old/classic solution is no longer worki

2条回答
  •  春和景丽
    2020-12-17 17:35

    Concurrent parallel requests worked for me when I decorated my controller with this attribute

    [SessionState(System.Web.SessionState.SessionStateBehavior.ReadOnly)]
    

    It works better than the above disabling session state and was added back in MVC 3. More info here

提交回复
热议问题