Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NHibernate - what is the difference between ManagedWebSessionContext and WebSessionContext?

In NHibernate, what is the difference between ManagedWebSessionContext and WebSessionContext ? Which is best to use, and why ?

Based on the description found here, I cannot tell the difference.

like image 259
driis Avatar asked Apr 14 '10 11:04

driis


1 Answers

I had the same question recently and as far as I could determine ManagedWebSessionContext has been deprecated and may be removed in version 3.0. Using WebSessionContext allows you to use the same session creation API with web, thread static, and call context sessions, and that's a compelling reason to choose it over ManagedWebSessionContext.

like image 180
Jamie Ide Avatar answered Sep 18 '22 02:09

Jamie Ide