tags:

views:

211

answers:

3

For example,

I can specify the session timeout in the web.config file by adding:

<system.web>
     <sessionState timeout="10"/>
</system.web>

Or I can configure the session timeout in IIS by going to the Application Configuration Options.

If they are both configured to different values, which one wins? And more specifically, do all other settings follow the same pattern?


EDIT: 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.

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.

+2  A: 

The one in web.config 'wins'.

Edit: Basically when you edit settings from UI the changes are written back to web.config

AlexS
+3  A: 

They are one in the same.

YetAnotherDeveloper
A: 

They are the same. BTW, you could have tried it out faster than typing this question! :)

desigeek