---
schema_version: "1"
id: 4b119451dfedf4eda2871b1d6b9a1213e1d35068dac76c35e2251529af04abfa
title: Maintain Shopper Sessions Across Subdomains in Your Composable Storefront
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/commerce-cloud/pwa-kit-managed-runtime/guides/pwa-domain-cookie.md
canonical_url: https://developer.salesforce.com/docs/commerce/pwa-kit-managed-runtime/guide/pwa-domain-cookie.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 90e645d2bf7873a0f941461591b74d59c7c42c6fdbb80d037f874826f8b6a224
products:
  - Composable Storefront
  - Salesforce APIs
---
# 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](https://github.com/SalesforceCommerceCloud/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](https://developer.salesforce.com/docs/media/sfnext/sfnext-hybrid-cookie-domain.png)

## See Also

- [GitHub: Hybrid Cookie Domain Configuration](https://github.com/SalesforceCommerceCloud/pwa-kit/blob/develop/docs/hybrid-cookie-domain-configuration.md)
