session-state-provider

Configure Redis Session State on Azure

為{幸葍}努か 提交于 2019-12-23 19:14:39
问题 I've got the Redis Session State Provider working fine locally with my ASP.Net site and in Azure with my Azure Website. But I've got a question about configuration... Is there any way to store the configuration for that in the Azure Website itself using the App Settings (or Configuration Strings) section in the Website Properties screen? That would be very convenient because it would mean that I don't have to modify the web.config file when I publish. I already do this for connection strings

Raise Session_OnStart event from custom ASP.NET SessionStateProvider class

谁说我不能喝 提交于 2019-12-10 22:18:47
问题 I'm working on an asp.net project that uses an in-house developed custom SessionStateProvider class. Evidently, the Session_OnStart event is not firing. I have code in Global.asax to handle the event. I can only get this code to execute by changing the Web.config to use the default SessionStateProvider. What must I do to make my Session_OnStart code execute when I'm using a custom SessionStateProvider class? I have access to the source code. Update : It clearly says on MSDN that ordinarily,

Using WCF DataContract in MVC SessionState using AppFabric cache

帅比萌擦擦* 提交于 2019-12-09 06:30:21
问题 I have a Data Access Layer, a Service Layer, and a Presentation Layer. The Presentation Layer is ASP.NET MVC2 RTM (web), and the Service Layer is WCF (services). It's all .NET 3.5 SP1. The problem is that in the services, the objects being returned are marked with the [DataContract] attribute. The web is using the AppFabric Cache (a.k.a Velocity) SessionStateProvider to store session state. Due to this, anything I store in the session must be serializable. Here comes the problem: the

How to define connection string for session state in Azure

醉酒当歌 提交于 2019-11-29 10:59:49
I am using the RedisSessionStateProvider using a procedimient like this https://azure.microsoft.com/en-us/documentation/articles/web-sites-dotnet-session-state-caching/ I define its connection string in web.config , in this example is XXXXXX . <system.web> <compilation debug="true" targetFramework="4.6.1" /> <httpRuntime targetFramework="4.5" /> <globalization culture="es-CO" uiCulture="es" /> <customErrors mode="Off" /> <sessionState mode="Custom" customProvider="SessionStateStore"> <providers> <add name="SessionStateStore" type="Microsoft.Web.Redis.RedisSessionStateProvider" connectionString

How to define connection string for session state in Azure

旧巷老猫 提交于 2019-11-28 04:44:05
问题 I am using the RedisSessionStateProvider using a procedimient like this https://azure.microsoft.com/en-us/documentation/articles/web-sites-dotnet-session-state-caching/ I define its connection string in web.config , in this example is XXXXXX . <system.web> <compilation debug="true" targetFramework="4.6.1" /> <httpRuntime targetFramework="4.5" /> <globalization culture="es-CO" uiCulture="es" /> <customErrors mode="Off" /> <sessionState mode="Custom" customProvider="SessionStateStore">