Join us for an upcoming Shopify Partner webinar on February 27, 2024. Discover the latest Checkout Extensibility features, and deep dive on improvements to Shopify Functions and Web Pixels. Register now for either the 10am EST or 2pm EST sessions.

Set session cookie in app accesses via POS-Link

Shopify Partner
4 0 1

I'm building an app using the Remix template and I'm currently stuck on trying to implement cookie-based session authentication (Remix Sessions):



    cookie: {
      name: "auth-session-cookie",
      secure: true,
      secrets: ["example"],
      sameSite: "none",
      maxAge: 300,
      path: "/",



The authentication works when accessing the app through Shopify Admin but for some reason, it does not work when accessing the app via the POS.

After some testing, it seems like the returned 'Set-Cookie' header does not actually create the cookie in the built-in browser of the POS app.



return redirect("/app/auth", {
    headers: {
      "Set-Cookie": await commitSession(storageSession),




Does the built-in browser of the POS support cookies at all, am I maybe missing some settings?

Replies 2 (2)

Shopify Staff
1776 263 383

Hey @Mittlus 


Please post this question here:

Scott | Developer Advocate @ Shopify 

Shopify Partner
4 0 1

I don't think there's an issue with the Remix implementation, as I also tried to set and read a cookie with plain Javascript (which also did not work).