Questions tagged [session-state-provider]

34 questions
7
votes
2 answers

How can I slowly migrate to using Redis as a Session State Provider from in process?

Is it a bad idea to implement my own session state provider that conditionally switches based on key between the redis session provider and the inproc session provider? I am working in a very large legacy asp.net application that currently uses the…
Nick BL
  • 251
  • 1
  • 10
7
votes
4 answers

How to define connection string for session state in Azure

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. …
5
votes
2 answers

Using WCF DataContract in MVC SessionState using AppFabric cache

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…
3
votes
2 answers

Configure Redis Session State on Azure

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…
Salam
  • 33
  • 3
3
votes
1 answer

How session state provider set in Application_Start

I need ability to set the session state provider in code rather than web.config. I have tried adding in code in Application_Start System.Configuration.Configuration _configuration =…
chugh97
  • 8,936
  • 24
  • 81
  • 132
2
votes
2 answers

Implementing custom session state provider in ASP.NET MVC

I'm working on implementing a custom session state provider for my ASP.NET MVC application. My requirement is I've to store the session data as xml in a custom table in Sql server. Can I use the existing sql session state provider (overriding some…
VJAI
  • 29,899
  • 20
  • 93
  • 155
2
votes
2 answers

Object reference error during custom session state provider initialization

I have written a custom session state provider which works fine in debug mode but once deployed on the server (IIS 6) i get the following error: Event code: 3008 Event message: A configuration error has occurred. Event time: 10/7/2011 3:05:02 PM…
Vinay B R
  • 7,227
  • 2
  • 24
  • 44
2
votes
2 answers

Implementing Custom Session State Store Provider in dotnet core

I was just planning to implement a custom session state provider for a distributed cache product in .net core but I could not find SessionStateStoreProviderBase and related classes in dotnet core. Can somebody tell me where to find them?
Haseeb Jadoon
  • 350
  • 5
  • 20
2
votes
2 answers

Redis Session State Provider manage fallback

I use Redis as Session State Provider but since I have many users sometimes it happens that Redis goes down. So I would like to have a default Session State Provider to use in case the first one goes down. Is this possible? Any other…
ayasha
  • 1,131
  • 3
  • 23
  • 43
2
votes
3 answers

Raise Session_OnStart event from custom ASP.NET SessionStateProvider class

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…
Vivian River
  • 28,530
  • 54
  • 179
  • 298
2
votes
3 answers

DynamoDB Session State in ASP.NET MVC

I have create a new ASP.NET MVC 5 Project. I have installed through Nuget the AWS SDK for .NET and Session Provider and I have read this article in Amazon: Article I have this configuration in the Web.Config
chemitaxis
  • 11,583
  • 14
  • 62
  • 117
1
vote
1 answer

UnableToConnect Azure Cache for Redis

I am trying to store ASP.NET session state in the cache (Azure cache for redis) as mentioned here https://docs.microsoft.com/en-us/azure/azure-cache-for-redis/cache-aspnet-session-state-provider but, i am receiving below error. UnableToConnect on…
olddev
  • 11
  • 1
1
vote
1 answer

Adding Session State Provider using Azure KeyVault for the connection string

Currently I am trying to add MS Session State Provider in my project: https://docs.microsoft.com/en-us/azure/azure-cache-for-redis/cache-aspnet-session-state-provider The settings are like this:
Terence
  • 522
  • 7
  • 24
1
vote
0 answers

OcLazyLoader path is not working controller is not loading

I am trying to load js and css when corresponding state has reached i am isunf OcLazyLoader and i have mentioned controller name and i am trying to load controller defintion using ocloader but i am getting controller undefined My config file is …
1
vote
1 answer

angularsjs state provider multi params

I am trying to build state provider that catch multi params but the issue is that i dont know how many params is it possible to catch them as object or array? or the only solution is to catch it as string and separate them? for example this is my…
Erez
  • 524
  • 1
  • 5
  • 22
1
2 3