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.

有帮助吗?

解决方案

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.

其他提示

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top