Azure Redis Session State Management

Manish Yadav 26 Reputation points
2022-07-31T18:54:48.02+00:00

Hello,

I am using Microsoft.Web.RedisSessionStateProvider package to connect with redis for session state management.

I am following the configuration mentioned in the below doc to connect to redis.
https://learn.microsoft.com/en-us/azure/azure-cache-for-redis/cache-aspnet-session-state-provider

The dot net run time manages the session connection and does everything for us.
I was looking for a way to hook into the connection lifecycle part and do some customization as to how. Net should connect with redis via cert or password.
I see the redis exchange package has config option to pass different parameters when manually opening connection for caching solution.

But with session state how can i hook into just the connection part and leave everything to. Net for handling the session.?

Anyone has any ideas?

Azure Cache for Redis
Azure Cache for Redis
An Azure service that provides access to a secure, dedicated Redis cache, managed by Microsoft.
213 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,119 questions
{count} votes