Say I have a Facade layer which sits just beneath my UI (in this case ASP.NET) layer. This, of course, provides the API for my controller (code-behind) classes to interact with my domain as well as encapsulating my Application Logic.
I understand it is good to do some kind of Session management in this layer too, but I just don't get the best way to do this without directly referencing the Session object from HttpContext. This limits my Facade to being a Web-facing service layer, though, so that isn't gonna work. I don't want to store session variables in my code-behind because this seems to force me into putting biz rules in my ui layer : bad.
Does anyone have a good resource or architecture they have used to have session management in layers beneath the UI layer...is this simply some kind of second-level caching?
Anyone else come across this?