質問

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