How to define connection string for session state in Azure

后端 未结 4 1392
傲寒
傲寒 2020-12-19 05:37

I am using the RedisSessionStateProvider using a procedimient like this https://azure.microsoft.com/en-us/documentation/articles/web-sites-dotnet-session-state-

4条回答
  •  醉酒成梦
    2020-12-19 06:15

    I did it :)

    To do that you need to define the connection string as a environment variable, not as a typical connection string. And in the sesion state provide use the environment variable name.

    This way:

      
        
      
      
        
          
            
          
        
      
    

    Using that you can now define the connection string in the App Settings of Azure WebSites

提交回复
热议问题