No shopify session id cookie stored in browser

Topic summary

A developer is troubleshooting an issue where the _shopify_s session cookie is not appearing in the browser on the cart page.

The Problem:

  • Their custom checkout relies on capturing the Shopify session ID from this cookie when checkout opens
  • The cookie is missing when checked via browser console on the cart page
  • A function in their Liquid theme file executes on page load to capture the session ID

Current Status:

  • The developer notes this likely isn’t a checkout issue itself, but rather a cookie storage/detection problem
  • An image was shared (appears corrupted in the post) presumably showing the console or cookie inspection
  • No responses or solutions have been provided yet

The discussion remains open with the core question unanswered: why the _shopify_s cookie isn’t being stored or detected on the cart page.

Summarized with AI on November 9. AI used: claude-sonnet-4-5-20250929.

My store uses a custom checkout which captures shopify session id as the time checkout opens by accessing the cookie ‘_shopify_s’ which is stored in the browser. However I am not able to detect this cookie stored on the cart page.

GkPayments_0-1716890503279.png

^checking the cookie via console tab.

This function is executed when pages load in the liquid theme file which captures the shopify session id.

This probably does not seem to be a checkout issue. What can be the issue here?