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

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.