Oedum
Oedum

Reputation: 816

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??

Upvotes: 4

Views: 1523

Answers (2)

Atul K.
Atul K.

Reputation: 101

Default value for session timeout is 20 minutes. You can change it in your webconfig as per your need.

Upvotes: 2

Diego
Diego

Reputation: 36176

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

<configuration>
  <system.web>
     <sessionState timeout="10"></sessionState>
  </system.web>
</configuration>

Upvotes: 6

Related Questions