mrbengi mrbengi - 19 days ago 8
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 :

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


How can I fix this?

Answer

I found that this is belong to session time.

So I should set

Session.Timeout = // some time.