Cookie session, automatic logout

I am using ASP.NET 4.0 for the site I am doing. It has a login that leads to some backend sites. Everything works fine ... BUT ... There seems to be a logout in the session cookie. Whenever I log in and leave it for a few minutes, it logs me in when I load the page.

Does anyone know what I can do to change this ... or delete it?

+4
source share
2 answers

you need to set the session timeout on your website:

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

The default value for the session timeout is 20 minutes. You can change it in your webconfig to suit your needs.

+2
source

Source: https://habr.com/ru/post/1416546/


All Articles