ComponentSpace

Forums



Distributed Cache Session using Redis


Distributed Cache Session using Redis

Author
Message
akcatchme
akcatchme
New Member
New Member (7 reputation)New Member (7 reputation)New Member (7 reputation)New Member (7 reputation)New Member (7 reputation)New Member (7 reputation)New Member (7 reputation)New Member (7 reputation)New Member (7 reputation)

Group: Awaiting Activation
Posts: 5, Visits: 45
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.


ComponentSpace
ComponentSpace
ComponentSpace Development
ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)

Group: Administrators
Posts: 3.2K, Visits: 11K
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 [email protected] mentioning your forum post.
https://www.componentspace.com/Forums/7936/Enabling-SAML-Trace


Regards
ComponentSpace Development
GO


Similar Topics


Execution: 0.000. 2 queries. Compression Enabled.
Login
Existing Account
Email Address:


Password:


Select a Forum....












Forums, Documentation & Knowledge Base - ComponentSpace


Search