Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is unit of Forms Authentication timeout in Asp.net?

Is it in minutes? It is in "2880", but this timeout is too short. Doesn't seem to be in minutes...

   <authentication mode="Forms">
      <forms loginUrl="~/Account/Login" timeout="2880" />
   </authentication>
like image 526
Lara Avatar asked Dec 01 '16 22:12

Lara


People also ask

What is timeout in forms authentication?

The amount of time in minutes after which the authentication expires. The default value is 30 minutes.

What is form authentication in ASP.NET with example?

Form authentication is cookie based, as ASP.NET places a cookie in the client machine in order to track the user. If the user requests a secure page and has not logged in, then ASP.NET redirects him/her to the login page. Once the user is authenticated, he/she will be allowed to access the requested page.


1 Answers

<forms loginUrl="~/Account/Login" timeout="2880" />

FormAuthentication timeout is in minutes. 2880 means 48 hours.

Default is 30 minutes if you do not explicitly set it.

like image 102
Win Avatar answered Oct 06 '22 01:10

Win