Friday, December 23, 2011

Session state in Window Azure using caching

In my previous post , I have talked about different ways to maintain session state in window azure.
From there the best way to maintain session state in window azure is by using appfabric caching, so i am going to discuss it here in details.

1) Create a Cache in Windows Azure

Open management portal , click on servicebus & caching option as per shown in fig-1.




Expand services and click caching , create new namespace as per shown in below fig.



Select service (here cache) add namesapce, location and subscription as per shown in fig



click to view client configuration file.





http://msdn.microsoft.com/en-us/library/gg618004.aspx


2) Prepare Visual Studio to Use Caching for Windows Azure

Verify that the target framework version is .NET Framework 2.0 or higher (non-client profile).

open web.config copy portion of configsection , datacacheclient in web.config,

copy Sessionstate section under system.web


http://msdn.microsoft.com/en-us/library/gg278344.aspx


Related Links

http://www.windowsazure.com/en-us/develop/net/how-to-guides/cache/

http://weblogs.asp.net/shijuvarghese/archive/2011/05/04/usi

ng-windows-azure-appfabric-caching.aspx

http://www.codeproject.com/KB/azure/WA-AppFabric-cache.aspx



No comments: