Carlos Mendes - 345 - Dec 3, 2013

Hi there, I’m trying out v4 and one of the changes from 4.0.17 is that we no longer can get a custom type session as this is no longer possible from a Razor View (that inherits from ViewPage):

GetSession<CustomAuthSessionType>()

Is there a new way of accessing it from a Razor View?

Hi Carlos, this was renamed to base.SessionAs&lt;CustomAuthSession&gt;() so it matches the same API on Service base class.