IIS Session Timeout vs ASP.NET Session Timeout

codeulike picture codeulike · Oct 9, 2009 · Viewed 26.6k times · Source

In IIS 6 (and other versions too afaik), there is a Session Timeout setting in Properties -> Home Directory Tab -> Configuration button -> Options tab. Looks like this:

picture of IIS dialog

And in the ASP.NET web.config there is a SessionState setting, looks like this:

<system.web>
    <sessionState timeout="120" />
    <!-- etc .. -->
</system.web>

Are they, by any chance, related? Do they set the same thing, or different things?

Answer

olle picture olle · Oct 9, 2009

They are not the same. The IIS session timeout is for clasic ASP pages. The web.config one is for asp.net.