Eliminating static properties - What patterns do I have at my disposal?
- by Jamie Dixon
I currently have a type that I inject into my controllers that's used for getting and setting session data.
I use this so that I can obtain relevant session information as _sessionData.Username rather than using Session["username"].
I'd like to use this session information across all of my views and would previously have done this by making the…