Replacing webrole's session storage with appfabic in azure

Source: Internet
Author: User

 

Replacing webrole's session storage with appfabic in azure

If multiple instances are specified during the deployment of a webrole, session sharing between these instances is a problem that must be solved.

We know that the session storage methods in Asp.net are: inproc, sqlserver, StateServer, and custom. This section describes how to use appfabic to store sessions on azure.

 

1. Activate the cache service on Windows azure platform, for example.

 

2. Configure web. config to use the cache service to store sessions

<Configuration> <! -- Make sure that this node is the first node --> <configsections> <section name = "datacacheclients" type = "Microsoft. applicationserver. caching. datacacheclientssection, Microsoft. applicationserver. caching. core "allowlocation =" true "allowdefinition =" everywhere "/> </configsections> <datacacheclients> <datacacheclient name =" default "> 

Reference: Windows azure appfabric caching service Introduction

Install, configure, and use Windows Server appfabric

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.