2

How do I increase the session timeout for my C# ASP.NET application?

1
  • Question is not clear to me, Do you want to increase your session expiration time ?? Commented Aug 31, 2012 at 9:29

2 Answers 2

1

This is normally done in the <sessionState> element of your Web.config file. Check MSDN here:

http://msdn.microsoft.com/en-us/library/h6bb9cz9%28vs.80%29.aspx

Sign up to request clarification or add additional context in comments.

Comments

1

You can use following code:

Session.Timeout = 4000;

It sets timeout in minutes.

or in web.config for all users as suggested by David M

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.