
Hi
I have a scaling setup, with a load balancer, and I have an issue with the user session (If I get switched to another instance I lose my user session)
I'm looking to set REDIS as a session handler
I have been trying this, here: vendor/shopware/core/Framework/Resources/config/packages/framework.yaml
framework:
cache:
app: cache.adapter.redis
default_redis_provider: 'redis://redis.server'
But it does not work
Any suggestions?
1 Answer
-
timbrns ModeratorComments: 38 Received thanks: 11 Member since: February 2020
Hi Yafar,
I guess this is connected to the redis standard session handling which uses the local storage. I found a documentation for using redis for session handling in symfony, this could also be applied to shopware:
http://blog.michaelperrin.fr/2018/08/14/redis-session-handling-in-symfony/Kind regards,
TimQuoteAccepted AnswerThanked by 1Yafar_iSi - Accepted Answer
Answers
Hi Yafar,
I guess this is connected to the redis standard session handling which uses the local storage. I found a documentation for using redis for session handling in symfony, this could also be applied to shopware:
http://blog.michaelperrin.fr/2018/08/14/redis-session-handling-in-symfony/
Kind regards,
Tim
Hi Tim!
Thank you for your reply
I found the same link today
It did work!
Thanks again!