title: Does the web.config file settings override IIS settings?
body: <p>For example,</p>
  
  <p>I can specify the session timeout in the web.config file by adding:</p>
  
  <pre><code>&lt;system.web&gt;
          &lt;sessionState timeout="10"/&gt;
  &lt;/system.web&gt;
  </code></pre>
  
  <p>Or I can configure the session timeout in IIS by going to the Application Configuration Options.</p>
  
  <p>If they are both configured to different values, which one wins? And more specifically, do all other settings follow the same pattern?</p>
  
  <hr>
  
  <p><strong>EDIT:</strong> I don't see them being as one in the same. The web.config wins. And when I change the value in IIS, nothing gets written back to the web.config.</p>
  
  <p>There's a definite disconnect between the settings in the web.config and the settings in IIS. I haven't read any good documentation on which one overrides the other. All I've observed is that the web.config wins. I thought someone else may have some more insight into this disparity.</p>