mvc 5 session timeout after default period (20 mins)

前端 未结 1 1630
渐次进展
渐次进展 2020-12-05 10:55

My MVC 5 site has web.config like this:


  

        
相关标签:
1条回答
  • 2020-12-05 11:19

    You are dealing with two separate issues, auth timeout and session timeout. Session timeout is controlled by the following key in web.config...

      <system.web>
        <sessionState mode="InProc" timeout="30" />
      </system.web>
    

    I'm not sure which you are encountering but I suspect it is the session timeout you are encountering rather than the authentication timeout... Try removing the timeout from your forms tag entirely and see if that gives you what you are looking for.

    More information here- forms timeout issue in asp.net mvc

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