Distributed Cache Session using Redis

I am having Issue “There is no SSO session to partner to logout” in production server. We have load balancer in production server which could be the reason.

I am trying to use Redis as store session.
I added following code in startup in my .net core application as per these document
https://www.componentspace.com/documentation/saml-for-asp-net-core/ComponentSpace%20SAML%20for%20ASP.NET%20Core%20Web%20Farm%20Guide.pdf

services.AddDistributedRedisCache(option =>
{
option.Configuration = “redisserverIP:port”;
option.InstanceName = “SampleInstance”;
});

But it is breaking now. I think there should be more that I am not understanding.

Do I have to implement ISsoSessionStore and use redis there ?
Can anyone guide me here ?

Thank you.

That should be all you need to do.
Are you calling AddDistributedRedisCache after calling AddSaml?
The AddSaml call itself calls AddDistributedMemoryCache so you need to call AddDistributedRedisCache after the call to AddSaml.
As an experiment, have you tried storing and retrieving some information via the IDistributedCache in your application to see if Redis is setup correctly?
If there’s still an issue, please enable SAML trace and send the generated log file as an email attachment to support@componentspace.com mentioning your forum post.
https://www.componentspace.com/Forums/7936/Enabling-SAML-Trace