Maintain Shopper Sessions Across Subdomains in Your Composable Storefront

Configure a shared parent cookie domain to keep shoppers logged-in with their baskets preserved when navigating between different subdomains. The domain-level cookie applies to storefronts that use multiple subdomains, such as www. and shop. on the example.com domain. It also applies to hybrid PWA Kit and SFRA storefronts that serve different paths under one parent domain. Without this configuration, shoppers lose their login status and shopping baskets when crossing subdomain boundaries. The loss of login status happens because browsers isolate cookies to individual hosts by default. Prevent frustration and abandoned carts by setting up domain-level cookies.

Prerequisite 

PWA Kit version 3.19 or later. See the pwa-kit GitHub repository.

Configure a Shared Parent Cookie domain 

  1. In Business Manager, go to Merchant Tools > Your Site > Site Preferences > Hybrid Auth Settings.
  2. Under Site Settings, set the domain scope for hybrid auth cookies. To scope cookies to the current host only, enter 0 for the cookie domain level. To share cookies across across subdomains, set the level to 2. Hybrid auth cookie domain scope setting

See Also 

Node 20 Deprecation

Node 20 has an end-of-life date of April 30, 2026. We strongly recommend that you update your production projects to Node 22 or Node 24 by upgrading to the latest minor version of PWA Kit 3.x. See full details on Node support dates and upgrade steps in Upgrade Node Version.