I have an ASP.net MVC2 application using NHibernate to access data. With each request, even static requests for files (images, javascript) creates a new session. Therefore, for one view, where I return the list, I create about 15 sessions that do not load anything.
Is there a way to create sessions only when they are required?
I am currently using Castle.Windsor to enter a session into my controllers.
Is there a way to filter out static file requests?
source
share