With MVC Future, it can be made much easier.
Add one line in Global.asax.csto the Application_Start()method
ValueProviderFactories.Factories.Add(new SessionValueProviderFactory());
Then you can access the session in the controller using
$Session["YourName"] = "some value";
or in view
@Session["YourName"]
here is an article on how to add a library to you project
source
share