# Warenkorb Lifetime / Session Timeout

**URL:** <https://forum.shopware.com/t/warenkorb-lifetime-session-timeout/64844>\
**Category:** Programmierung\
**Created:** [19. Februar 2020 um 13:17 UTC](https://forum.shopware.com/t/warenkorb-lifetime-session-timeout/64844 "2020-02-19T13:17:33Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![tim2](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/tim2/32/19833_2.png) [@tim2](https://forum.shopware.com/u/tim2)\
**Post date:** [8. Dezember 2023 um 11:04 UTC](https://forum.shopware.com/t/warenkorb-lifetime-session-timeout/64844/14 "2023-12-08T11:04:59Z")

</div>

Für Menschen, die dies lösen möchten.

In /config/packages:

Um sicherzustellen, dass Sitzungen aktiv bleiben, wie im folgenden Beispiel für 31 Tage. Erstellen Sie zum Beispiel, falls nicht vorhanden, session.yaml

```auto
# config/packages/session.yaml
framework:
    session:
        handler_id: "redis://localhost:6379/6"
        cookie_lifetime: 2678400

```

Um sicherzustellen, dass Warenkörbe aktiv bleiben. Erstellen Sie beispielsweise z-shopware.yaml

```auto
shopware:
    cart:
        expire_days: 31

```

---

_[View the full topic](https://forum.shopware.com/t/warenkorb-lifetime-session-timeout/64844)._
