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
1) Create a Cache in Windows Azure
Open management portal , click on servicebus & caching option as per shown in fig-1.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKOwS-9mgZoLN8M9NQQDdmj16bK2eU8w-MWLpZZX3NZYKMA9ENZYAPqgWeRD-sRBzkWbW_ZNcQ663mQhBpxZGyIphqOXeJTutR0bGqXDnb6jbAWMvzBakZ6SsSC53jZN3ruY8gViWMCGlR/s1600/1.png)
Expand services and click caching , create new namespace as per shown in below fig.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtPLJbh9B38kEuxVx1O4sfrZO_FloywdfYEA3P3qeYxHMkg6IoxzromzUU1zlLdZAphAheBykpaJ8Oxk2UpZoyDIQxjgTMp-X4s5QZB8Bgfw95ojURMQCNgVQe6jUKr53AXVA94fr4kYRp/s1600/2.png)
Select service (here cache) add namesapce, location and subscription as per shown in fig
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNVtQxiFOK8S2XfqnNmnWMbNyqZrZku8JQdPHcsaCsspR2mGR4jAP5oLIOmjFTI0f9FPOglAF3zFIjNTrhNszGP6KW0LqsGwa4xuh2_uJGp2-DWrEt8OCLmEJlclGTTM-tnSSUjpcU1Lod/s640/3.png)
click to view client configuration file.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-i0pXaNAlueJp7mgPuvlnGbRoxNrJTKFq8utorvTcdpfRwr53sK4PJQoGXhbausNdpQuQSibrC5xbnP0odHrWPbPV4Pf3XGI8BvyVoEgJaZkAP_SlbaKF2MBhrfdCiDkpxOTa38sHfnqD/s1600/4.png)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8hLzfV0hOKXE1PhXVVe0NBKXSps_YNbGZpIc2SudqR85jwq2iI_jkdB8ANvPJ21R3hVJxme79yIosg791yc2xFrF8AkO2RqrSnKkWa_L63o83GBSJJGAuXPJDfDiXMa_yRSsiQwzOHtob/s320/5.png)
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:
Post a Comment