title: ASP.NET C# + Nhibernate HTTP module (Session per request) - restrict request types
body: <p>I have implemented the <a href="http://code.google.com/p/walkme/source/browse/trunk/NerdDinner.Data/NHibernateSessionPerRequest+.cs?r=8" rel="nofollow">Session per request</a> pattern for managing nhibernate sessions.</p>
  
  <p>Because it is an httpmodule it runs for every request, be it a jpg or png. Is there a way to only get the module to create a session if the request is made through the MVC framework? I.E excluding png/jpg etc?</p>