I want to access a session variable from my layout master page, but you cant have a model in a layout page, so how do I access this variable?
Asked
Active
Viewed 7,146 times
1
-
Possible duplicate of [Accessing a Session object from Razor \_Layout.cshml](http://stackoverflow.com/questions/4381189/accessing-a-session-object-from-razor-layout-cshml) – Liam Apr 27 '17 at 12:47