0
<system.web>
    <sessionState timeout="20" mode="InProc"/>
  </system.web>

Is there anything else I need to do?

2
  • Is it in the <configuration>? No, nothing else. Be aware, that those are minutes. Commented Apr 20, 2017 at 12:38
  • yeah in web.config file Commented Apr 20, 2017 at 16:12

1 Answer 1

4

That should be alright but do also check if you are overriding that value in your code behind somewhere by saying below. Probably in the Global.asax file under Session_Start()

Session.Timeout = "40";
Sign up to request clarification or add additional context in comments.

7 Comments

Does this override the IIS timeout as well? If not, he's going to need to change that too.
@Kramb, AFAIK, setting this in cofig or code behind is same as setting in IIS
40 minutes or 40 second.?
@MehulJariwala, that's in minute and not seconds
@MehulJariwala, do you have session timeout set in IIS as well? check once
|

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.