I am using the RedisSessionStateProvider using a procedimient like this https://azure.microsoft.com/en-us/documentation/articles/web-sites-dotnet-session-state-
I think IPartitionResolver can come to rescue here...
You can basically create a class that implements System.Web.IPartitionResolver interface and specify it in the sessin state configuration in web.config as this
And then in the class you can override the connection string
public class WebAppConnectionStringResolver : System.Web.IPartitionResolver
{
public void Initialize()
{
}
public string ResolvePartition(object key)
{
return System.Configuration.ConfigurationManager.ConnectionStrings["your_Conn_string_name_in_portal"]
}
}
I havent tested this out but I believe this should work
Read more at