concept HttpModules in category asp.net

This is an excerpt from Manning's book ASP.NET 4.0 in Practice.
If you’re familiar with Classic ASP, you might remember a file named global.asa. ASP.NET has a similar file, named global.asax. This file functions similarly to an Http-Module, the difference being that it doesn’t require registration. HttpModules are separate from the application, so you can reuse them in different projects; global.asax is pure code that you add to a specific web application.
As we mentioned in chapter 1, HttpModules are a special kind of class used to intercept mainly HttpApplication events (but you can handle events from any object if you need to). An HttpModule implements the IHttpModule interface from the System.Web namespace and is loaded at runtime. Generally, HttpModules are stateless with regard to the current request, so they don’t contain state related to the current request, but they do use HttpContext (a singleton class) as their state context.