Store Member sessions in Distributed Cache
# help-with-umbraco
o
Hi all, I need to implement a Single Sign Off function for Members, on a load balanced site (1 edit app, 2 frontends). The SSO service we use has added new requirements that require us to have an API endpoint that can be hit to request a user logout. The problem is, we currently don't have any kind of distributed user session storage, and rely on the Application Gateway affinity cookies to keep a signed in user on the same frontend server. (which works very well) Therefore I now need to implement some kind of distributed user session storage and, after some research, it seems like redis is probably the way to go. I found this blog post, about using Azure Redis Cache to store user sessions, which looks quite promising: https://dev.to/garpunkal/umbraco-9-azure-cache-for-redis-3ipi But it seems too easy, surely that's not all there is to moving user sessions to redis? Has anyone else implemented something similar?
m
o
Cheers Mike! The "Distributed SQL Server Cache" seems interesting, I wonder if that would work in this case? I'll have to try it out
Ok I've setup the SQL Server Distributed cache according to the Microsoft docs. But when I'm running it locally, and testing by signing in as a Member, nothing appears to be getting added to the cache table, it's just blank? Has anyone here set this up successfully before?
32 Views