Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Session Cookie, auto logout

I am using ASP.NET 4.0 for a site I am making. It has a login that leads to some backend sites. That all works fine... BUT... There seems to be a logout thing in the Session cookie. Whenever I login and leave it for a few minutes it logs me out when I load the page.

Does anybody know what I can do to change this... or remove it??

like image 928
Oedum Avatar asked Feb 20 '23 05:02

Oedum


1 Answers

you need to set your session timeout on your web.config:

<configuration>
  <system.web>
     <sessionState timeout="10"></sessionState>
  </system.web>
</configuration>
like image 127
Diego Avatar answered Mar 05 '23 03:03

Diego