0

I am programming an application in ASP.NET MVC. The authentication is through the Forms. I have this entry in my web.config:

  <authentication mode="Forms">
      <forms loginUrl="StudioN/Login" timeout="99999"></forms>
  </authentication>

and I have set the timeout to 99999, but it expires a few minutes (less than 30 minutes) after I have logged in. How can prevent it and have a timeout suppose 99999 (I mean as long as user has the website on the browser)?

Jack J Jun
  • 5,633
  • 1
  • 9
  • 27
nnmmss
  • 2,850
  • 7
  • 39
  • 67
  • Try to set session timeout ``. Maybe you can refer to this [thread](https://stackoverflow.com/questions/13144868/timeout-in-authentication-does-not-work-properly). – 大陸北方網友 Sep 22 '20 at 08:56
  • @KyleWang:I added into web.config, but it expired less than 30 minutes – nnmmss Sep 22 '20 at 10:04

0 Answers0