mrbengi mrbengi - 5 months ago 46
ASP.NET (C#) Question

How can I extend the Forms Authentication time in ASP.Net?

My web forms crash after 7 mn. 10 sec. when they left idle.

I have this code in web.config but it does not work :

<authentication mode="None">
<forms timeout="30" slidingExpiration="true" />

How can I fix this?


I found that this is belong to session time.

So I should set

Session.Timeout = // some time.