# Using Redis for session handling

**URL:** <https://forum.shopware.com/t/using-redis-for-session-handling/64548>\
**Category:** Installation / Getting Started (EN)\
**Created:** [7. Februar 2020 um 15:19 UTC](https://forum.shopware.com/t/using-redis-for-session-handling/64548 "2020-02-07T15:19:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yafar\_iSi](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/yafar_isi/32/10765_2.png) [@Yafar\_iSi](https://forum.shopware.com/u/Yafar_iSi)\
**Post date:** [7. Februar 2020 um 15:19 UTC](https://forum.shopware.com/t/using-redis-for-session-handling/64548/1 "2020-02-07T15:19:19Z")

</div>

Hi

I have a scaling setup, with a load balancer, and I have an issue with the user session (If I get switched&nbsp;to another instance I lose my user session)  
I’m looking to set REDIS as a session handler  
I have been trying this, here:&nbsp;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?

---

<div class="post-metadata">

**Author:** ![timbrns](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/timbrns/32/19740_2.png) [@timbrns](https://forum.shopware.com/u/timbrns)\
**Post date:** [17. Februar 2020 um 13:17 UTC](https://forum.shopware.com/t/using-redis-for-session-handling/64548/2 "2020-02-17T13:17:28Z")

</div>

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/](http://blog.michaelperrin.fr/2018/08/14/redis-session-handling-in-symfony/)

Kind regards,  
Tim

---

<div class="post-metadata">

**Author:** ![Yafar\_iSi](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/yafar_isi/32/10765_2.png) [@Yafar\_iSi](https://forum.shopware.com/u/Yafar_iSi)\
**Post date:** [17. Februar 2020 um 14:10 UTC](https://forum.shopware.com/t/using-redis-for-session-handling/64548/3 "2020-02-17T14:10:08Z")

</div>

Hi Tim!

Thank you for your reply  
I found the same link today&nbsp; ![Grin](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/1X/70033cde8e8ff79cfa538293ae71318d6f788423.png "Grin")  
It did work!

Thanks again!
