I’m trying to make a solution like in HttpModule with ASP.NET MVC not being called
How do I filter the request? I only want to open an ISession if the request is for an ASP.NET MVC action, not for *.gif, *.css, etc.
How should I handle this filtering?
Sessions are very cheap to create, I wouldn’t bother with this filter.
Literally, opening a ISession is just a matter of a
new SessionImpl(..). SessionImpl constructor and dispose don’t do much if nothing happened in the session.