Using Redis for session handling

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?

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

1 „Gefällt mir“

Hi Tim!

Thank you for your reply
I found the same link today  Grin
It did work!

Thanks again!