3
Vote

NHibernate session is not closed at the end of the request

description

Hello, maybe I'm missing something, but it looks like the NHibernate session doesn't get closed after the web request, I guess that's because the HttpApplication.EndRequest cannot be subscribed by the WebSessionStorage class during the life cycle of the request. As a consequence, changes made to the session not wrapped by an explicit transaction are not persisted on the database. Is this the intended behavior?

comments