IHttpModule Gotchas – The Init() Method Can Get Called Multiple Times (Images)

10 March 2010 - 11:35 PM / by Dominic Pettifer. 1 Image 3 Comments

Development Gotchas - When creating and registering IHttpModules, some people mistakenly think that only a single instance of the IHttpModule is created, and that the Init() method is only called once. I’ll explain how and why this is incorrect, and how this misunderstanding can lead to subtle bugs in your ASP.NET web application.

Images

  • HttpApplication context pooling with multiple requests

    HttpApplication context pooling with multiple requests

Random Image

Fat Greedy Hamster

Fat Greedy Hamster (from the blog And So It Begins (part 2) )

Quick Poll

What is your DIP/IOC Container of choice?

Poll Vote
(see results)
View Comments (625) (See previous polls)

Latest Tweets

  • And YouTube still auto-fucking-plays videos!! This is TWO-THOUSAND-AND-FUCKING-TWELVE FFS!!!

    about 20 hours ago from web
  • On a side-note, YouTube's commenting system is god-awful atrocious dreadful horrible horrible horrible!! Constant meaningless error messages

    about 20 hours ago from web
  • JavaScript is slow mmmkay http://t.co/NbB4eQjw - Actually, no, it's not http://t.co/kpGEIoPO #nodejs

    about 20 hours ago from web
  • TFS: It's super expensive, so it must be brilliant, right? Like Sharepoint #tekpubtfstitlesuggestion

    5:22 PM February 3rd from web

View Dominic Pettifer's Twitter page.