This project has moved and is read-only. For the latest updates, please go here.

Solution for using Session Service with .NET MVC

Jun 6, 2014 at 4:12 AM
Hi,
I am working on adding some .NET MVC 4.0 pages to our site. Has anyone used the service with this. Is there a mechanism to gain access to the Homelidays session service from a Controller and/or without creating a code behind for every .aspx page in the site?

Thanks,

Greg
Coordinator
Jun 6, 2014 at 10:12 AM
Hello Greg,

You can use an HTTP module that instantiate the session service at BeginRequest and store the session to the DB at EndRequest.
I have tested it this morning on a ASP.NET MVC app.
I have updated the documentation https://sessionservice.codeplex.com/wikipage?title=Use%20the%20session%20service%20in%20ASP.NET%20code and it now describes the step to integrate an ASP.NET MVC app.

I hope this helps.

Yanal
Marked as answer by Yanal on 7/17/2014 at 9:45 AM