Configures the Http Modules within an application.
<httpmodules> <add type="[Assembly]# [NGWS Class] " /> <remove type="[Assembly]# [NGWS Class] " /> <clear /> </httpmodules>
You can configure the <httpmodules> section using three sub-tag directives:
Directive | Attribute | Description |
---|---|---|
add | Adds HttpModule classes to an application.
Note that if an identical verb/path has been specified earlier (for example – in a Config.web file in a parent directory), the second call to add will override the previous setting. |
|
type | Composed of an assembly+class combination (where the two values are separated by a '#' character). The assembly DLL is always resolved first against an application's private 'bin' directory, and then against the system assembly cache. | |
remove | Removes an HttpModule class from an application. | |
clear | Removes all HttpModules mappings currently configured or inherited by a particular Config.web file from the application. |
<configsections> <add name="httpmodules" type="System.Web.Config.HttpModuleConfigHandler”/> </configsections> <httpmodules> <add type="System.Web.State.CookielessSessionModule" /> <add type="System.Web.OutputCacheModule" /> <add type=”System.Web.State.SessionStateModule” /> <add type=”ScottGu.dll#MyClass” /> </httpmodules>
Contained Within: <configuration>
Web Platform: IIS 5.0
Configuration File: config.web
Configuration Section Handler:
System.Web.Config.HttpModulesConfigHandler
ASP+ Configuration Concepts