Skip to content

[Docs]: Missing Session Lifetime Documentation #2291

@cramytech

Description

@cramytech

Report type

Outdated content

Affected page URL or Markdown path

No response

Problem or request

The documentation is needed to centrally explain how Symfony sessions, the Sales Channel Context, and cart storage work together in Shopware. It mainly answers how long customers stay logged in, why a cart may or may not still be available after a longer period, and which configuration values control this behavior. The central point is to distinguish between framework.session.cookie_lifetime / gc_maxlifetime, shopware.api.store.context_lifetime, shopware.cart.expire_days, and shopware.sales_channel_context.expire_days, because each setting controls a different lifecycle.

The document could also point out the potential security implications of longer session lifetimes, especially on shared devices or when sensitive customer data is accessible. It should also mention possible infrastructure implications, such as increased Redis memory usage when sessions are stored for a longer period. This helps users choose values that balance convenience, security, and server performance.

Suggested improvement

E.g., https://forum.shopware.com/t/warenkorb-lifetime-session-timeout/64844/22

Shopware version or version range

No response

Context or environment

None

Evidence and supporting details

No response

Reproduction or discovery steps

No response

Repository routing confirmation

  • This issue is about documentation content or documentation behavior, not a Shopware product or platform bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions