Hello,

I am trying to use session variables in MVC VS2010.  I set the
variables in the global.asax.vb file in the Session_OnStart event.
Later in the application I try to call the session variable and it is
always null.  After doing some research I found that using session
variables in MVC is different than in regular .net 3.5 or 4.0.   Can
someone help explain to me how to use session variables in MVC? Are
there references you have to include? Anything in the web.config? A
special way to set and/or call the session variable?  I am at a
loss....   current right now, this is how I set and call the session
variable:


HttpContext.Current.Session("superadmin") = user



any help would be greatly appreciated.

Lee

Reply via email to