0

How to extend the session timeout? I tried entering:

Session.Timeout = 720;

In formLoad and also tried in webconfig:

<system.web>
    <sessionState 
     mode="InProc"
     cookieless="true"
     timeout="720" />
</system.web>

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

1
  • web.config is the right place. Can you post your changes? Commented Feb 15, 2010 at 14:31

2 Answers 2

1

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

<configuration>
  <system.web>
     <sessionState 
         cookieless="true" 
         timeout="20">
     </sessionState>
  </system.web>
</configuration>
Sign up to request clarification or add additional context in comments.

Comments

0

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.