Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Mar 19, 2012 03:54 PM by BrockAllen
Member
6 Points
5 Posts
Mar 19, 2012 03:46 PM|LINK
I'm working with MVC 3, and I need to pass HttpSessionState object but it appears MVC only has HttpSessionStateBase.
Is there anyway to get a hold of HttpSesssionState object?
Thanks!
All-Star
27522 Points
4901 Posts
MVP
Mar 19, 2012 03:54 PM|LINK
The implementation in MVC is HttpSessionStateWrapper and unfortunately it doesn't look like it exposes the wrapped HttpSessionSTate. To access the "real" session, you can always just call System.Web.HttpContext.Current.Session.
zLan
Member
6 Points
5 Posts
Get a hold of HttpSessionState MVC 3
Mar 19, 2012 03:46 PM|LINK
I'm working with MVC 3, and I need to pass HttpSessionState object but it appears MVC only has HttpSessionStateBase.
Is there anyway to get a hold of HttpSesssionState object?
Thanks!
BrockAllen
All-Star
27522 Points
4901 Posts
MVP
Re: Get a hold of HttpSessionState MVC 3
Mar 19, 2012 03:54 PM|LINK
The implementation in MVC is HttpSessionStateWrapper and unfortunately it doesn't look like it exposes the wrapped HttpSessionSTate. To access the "real" session, you can always just call System.Web.HttpContext.Current.Session.
DevelopMentor | http://www.develop.com
thinktecture | http://www.thinktecture.com/