26

I have an ASP.NET MVC 3 (Razor) Application and I am faced with frequent session timeouts.
Is there a way to increase the value of the session?

0

2 Answers 2

36

You're not providing enough details, such as your configuration, description of the problem etc.

What's happening more exactly? This article may help: Random Session Timeout in ASP.NET MVC3
If not, you could use a configuration like this in your web.config file :

<configuration>
  ...
  <system.web>
    <sessionState mode="InProc" timeout="30" />
  </system.web>
  ...
</configuration>

Here the session timeout is being set to 30 minutes, for example.

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

Comments

13

In web.config:

<sessionState mode="InProc" timeout="20"/>

You have to change the value of timeout attribute.

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.