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

前端 未结 4 1752
陌清茗
陌清茗 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:33

    Are you using the membership provider for authorization also? If so you may want to look at the userIsOnlineTimeWindow attribute. The default for this is also 20 minutes.

提交回复
热议问题