Issues with storing the custom Principal in Session for ASP.NET MVC

前端 未结 4 1711
陌清茗
陌清茗 2021-01-07 10:12

I am running into an issue with ASP.NET MVC where it is forcing the user to log back in after about 20 mins of inactivity.

I am using Forms Authentication and have i

4条回答
  •  被撕碎了的回忆
    2021-01-07 10:23

    Handling it via Session may not be enough. Because it could be IIS recycling your application, therefor causing all the sessions to be abandoned.

    See

    • [recycling] [iis]
    • [recycle] [iis]

提交回复
热议问题