views:

113

answers:

2

How to extend the session timeout? I tried entering:

Session.Timeout = 720;

in formLoad

and also tried in webconfig:

But still it times out after 10 minutes. Can any one help about this issue?

+1  A: 

Take a look at this Microsft Technet article. Check if it suits your needs.

<configuration>
  <system.web>
     <sessionState 

         cookieless="true" 
         timeout="20" 
     </sessionState>
  </system.web>
</configuration>
smink
i tried this and it wasn't working
Ivan Kitanovski
A: 

You might see this article, I haven't used it but a time ago I needed something like this to use in a webservice and I finished with another approach. It could be useful to you:

The Defibrillator: Keeping ASP.NET Session Alive Ad Infinitum

nmiranda