# 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:** 2\
**Page:** 2

<div class="post-metadata">

**Author:** ![paul2](https://avatars.discourse-cdn.com/v4/letter/p/df705f/32.png) [@paul2](https://forum.shopware.com/u/paul2)\
**Post date:** [27. August 2024 um 07:30 UTC](https://forum.shopware.com/t/warenkorb-lifetime-session-timeout/64844/22 "2024-08-27T07:30:49Z")

</div>

Vielleicht als Zusammenfassung für jemanden interessant:  
Folgende Konfiguration läuft bei mir mit Shopware 6.4.20.2 seit einem Tag:

**/config/packages/session.yaml:** (yaml-typische Einrückung beachten, habe das hier nicht konfiguriert bekommen)  
framework:  
session:  
cookie\_lifetime: 7776000  
gc\_maxlifetime: 7776000

**/config/packages/shopware.yaml** (yaml-typische Einrückung beachten, habe das hier nicht konfiguriert bekommen)  
shopware:  
api:  
store:  
context\_lifetime: P90D  
cart:  
expire\_days: 120  
sales\_channel\_context:  
expire\_days: 120

_Wichtig: Cache einmal löschen, sonst läuft es nicht!_

Meiner Beobachtung nach ist cookie\_lifetime + gc\_maxlifetime für den unangemeldeten Benutzer der sich etwas in den Warenkorb legt relevant, während die anderen Wert für den angemeldeten Benuzter relevant sind.

---

<div class="post-metadata">

**Author:** ![sschreier](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/sschreier/32/23296_2.png) [@sschreier](https://forum.shopware.com/u/sschreier)\
**Post date:** [11. November 2024 um 21:51 UTC](https://forum.shopware.com/t/warenkorb-lifetime-session-timeout/64844/23 "2024-11-11T21:51:32Z")

</div>

Hallo,

wie sieht denn die Konfiguration für die aktuellste Major-Version (6.6) aus? Weiterhin, indem man [shopware/src/Core/Framework/Resources/config/packages/shopware.yaml at trunk · shopware/shopware · GitHub](https://github.com/shopware/shopware/blob/trunk/src/Core/Framework/Resources/config/packages/shopware.yaml#L331) und [shopware/src/Core/Framework/Resources/config/packages/shopware.yaml at trunk · shopware/shopware · GitHub](https://github.com/shopware/shopware/blob/trunk/src/Core/Framework/Resources/config/packages/shopware.yaml#L345) abändert? Diese Änderungen müssten dann aber in dieser Version in einer neuen Datei „z-shopware.yaml“ abgelegt werden.

**cookie\_lifetime** und **gc\_maxlifetime** müssten in dieser Version eher bei [shopware/src/Core/Framework/Resources/config/packages/framework.yaml at trunk · shopware/shopware · GitHub](https://github.com/shopware/shopware/blob/trunk/src/Core/Framework/Resources/config/packages/framework.yaml#L18) ergänzt werden, oder?

Grüße  
Sebastian

[Vorherige Seite](https://forum.shopware.com/t/warenkorb-lifetime-session-timeout/64844.md?page=1)
