# `PhoenixKit.Modules.Shop.Web.Plugs.ShopSession`
[🔗](https://github.com/BeamLabEU/phoenix_kit/blob/v1.7.76/lib/modules/shop/web/plugs/shop_session.ex#L1)

Plug that ensures a persistent shop session ID exists.

This plug generates a unique session ID for guest users and stores it
both in a dedicated cookie AND in the Phoenix session. This ensures
the same cart is used across different pages.

# `call`
[🔗](https://github.com/BeamLabEU/phoenix_kit/blob/v1.7.76/lib/modules/shop/web/plugs/shop_session.ex#L20)

# `init`
[🔗](https://github.com/BeamLabEU/phoenix_kit/blob/v1.7.76/lib/modules/shop/web/plugs/shop_session.ex#L18)

---

*Consult [api-reference.md](api-reference.md) for complete listing*
