ASP.NET Session Timeout: What is the Priority Order?

There seem to be many places to change the session timeout for an ASP.NET application. For instance,

  • At the application pool level containing the application,
  • At the node application pool level containing all appPools,
  • In the website properties dialog box, ASP.NET tab, Edit Configuration,
  • In the website properties dialog box, the ASP.NET tab, "Edit Global Configuration,"
  • In web.config application
  • In the machine configuration files.

Perhaps I missed some who know. This is what I have found so far. So the question is, what is the priority order for the session timeout? Which setting overrides others?

Thank!

+2
source share
4 answers

Following other answers:

ASP.NET , , :

Microsoft.Net\Framework\vX.Y.ZZZ\Config

. machine.config - 6
. web.config - , 4,
. web_ [] trust.config -

, :

. Node - 2
. - 1

-:

. web.config - 3 5
. ( HttpContext.Session.Timeout ) - , - , .

0

3 5 , .

0

, 3 == 5 4 == 6

web.config machine.config

, - 1 2, IIS 7.5 .

0

3 == 5 4 == 6, . 1 2, , - , reset .

, , web.config , . , , . iis6, 7 -.

, - , web.config, reset reset . , .

0

All Articles