Question

I have configured the Azure AppFabric Cache as session provider in my ASP.NET MVC application.

How do i store session data in Azure Cache?

Is it the same was as with inProc session? Like by using ViewBag, TempData and stuff?

Thanks.

Was it helpful?

Solution

If you configured AppFabric as session provider you can now use Session State just in the same way when you had InProc session. Other features that use Session State (for example TempData) also work.

OTHER TIPS

If you haven't already, I'd encourage you to have a look at this section in the Windows Azure Training Kit. It does a very good job of demonstrating how to use Windows Azure Caching.

http://msdn.microsoft.com/en-us/wazplatformtrainingcourse_buildingappswithcacheservice#_Toc310505077

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top