Hi @Ivan,
Thanks for the question and using MS Q&A platform.
The Microsoft.Web.Redis.RedisSessionStateProvider does not directly support passing a ConfigurationOptions object. However, you can work around this limitation by creating a custom session state provider. By subclassing the default provider and overriding the connection logic, you can use a custom ConfigurationOptions object.
Here's how this helps:
Custom Configuration: With ConfigurationOptions, you can configure advanced Redis settings, such as SSL, timeouts, retry policies, and more.
Custom Provider: By creating your own provider, you can ensure that these advanced settings are applied when connecting to Redis.
By subclassing the default RedisSessionStateProvider and overriding the connection setup, you can pass a ConfigurationOptions object, giving you full control over your Redis connection. This allows you to customize settings while still using RedisSessionStateProvider for session management in your application.
Hope this helps. Do let us know if you any further queries. If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.