question

ManishYadav-9834 avatar image
0 Votes"
ManishYadav-9834 asked ManishYadav-9834 commented

Azure Redis Session State Management

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://docs.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?

dotnet-runtimeazure-cache-redis
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @ManishYadav-9834, welcome to Microsoft Q&A forum.

I am checking this with the internal team and will get back to you at the earliest.

0 Votes 0 ·

Hi @ManishYadav-9834, thanks for your patience.

Please check below link that includes examples of session state providers and also various parameters that can be defined in connection.

Configuration

StackExchange.Redis


0 Votes 0 ·
ManishYadav-9834 avatar image ManishYadav-9834 AnuragSharma-MSFT ·

Hi Anurag,
My specific requirement is to use two way ssl with session state. I don't see any settings to provide client certificate with session state but I see for application cache.
So I was thinking if there is a way to hook into the connect lifecyle and we could use code behind to add the cert.

Any help would be appreciated.

Thanks,
Manish

0 Votes 0 ·

0 Answers