
ProcessInfo | 511
System.Web
Namespace
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
IHttpModule
System.Web (system.web.dll)
interface
You can use this interface to create custom HttpModules. HttpModules are added
through the <httpmodules> section of the web.config file. Some HttpModules that are
available to you include FormsAuthenticationModule, PassportAuthenticationModule, and other secu-
rity modules in the System.Web.Security namespace.
HttpModules are often used for security or logging because they can participate in the
processing of every request into an application. HttpModules work by reacting to
ASP.NET events. For example, if you want an HttpModule to participate in every
web request, you could react to the HttpApplication.BeginRequest event. You can also specify
that a HttpModule process other files (for example, JPEG and BMP) rather than just
ASP.NET file types by updating the Application Extension Mapping to use aspnet_
ISAPI.dll to manage the appropriate extension.
Implemented By
System.Web.Mobile.ErrorHandlerModule, System.Web.Security.{DefaultAuthentication-
Module, FileAuthorizationModule, FormsAuthenticationModule,
PassportAuthenticationModule, UrlAuthorizationModule, WindowsAuthenticationModule},
System.Web.SessionState.SessionStateModule
Returned By
HttpModuleCollection.{Get( ), this}
ProcessInfo
System.Web (system.web.dll) ...