How to keep user login in to system and logout only after user clicks on logout button?

后端 未结 8 1310
傲寒
傲寒 2021-02-13 10:26

I am using custom implementation of microsoft asp.net identity because i have custom tables that is why i have given custom implementation of all my methods IUserStore a

8条回答
  •  醉梦人生
    2021-02-13 10:55

    Examine the settings of the forms element within the authentication element of your web.config file.

    Note the default values for the two applicable settings.

    1. timeout (default is 30 minutes)
    2. slidingExpiration (True or False / default varines with .NET Framework version)

    For your situation, you will probably want a timeout duration much higher than 30 minutes and a slidingExpiration value of True.

提交回复
热议问题