2

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.

2 Answers 2

3

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

Sign up to request clarification or add additional context in comments.

Comments

1

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.

2 Comments

is there a way to view the cache contents?
That's not my experience. Session works, but not in the same way! See my session variable question stackoverflow.com/questions/10414014/…

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.