ASP.NET MVC FormsAuthentication Cookie timeout cannot be increased

前端 未结 3 971
旧时难觅i
旧时难觅i 2020-12-20 15:31

Using the default ASP.NET MVC template, I cannot figure out how to increase the FormsAuthentication timeout. It seems to always use 30 minutes.

I have followed Scot

3条回答
  •  春和景丽
    2020-12-20 16:00

    Be sure that you are setting this in the ~/Web.config file and not in the ~/Views/Web.config file. Also, 50 million minutes is approx. 100 years, which might be hitting some date-related overflow in the browser. Try using a more reasonable number like 2 - 3 years (1.5 million minutes).

提交回复
热议问题