Exclude HttpModule from running for static content on IIS7

前端 未结 2 1153
广开言路
广开言路 2021-02-09 17:24

I have a problem with my Authentication HttpModule. The problem is that it obviously runs for every single request I get on my web server (IIS7). Because it also uses Session va

2条回答
  •  终归单人心
    2021-02-09 17:53

    runAllManagedModulesForAllRequests attribute has to be set to false to actually configure any module the way you want. You will have to also correctly reconfigure Session and others as needed, but the main thing is handlers pipeline execution order that handles requests.

    The answer was provided in one of my other questions:

    Thanks to Peter that provided the answer that worked correctly.

提交回复
热议问题