Why your Shopify cart disappears after login — and the fix

Your Shopify cart disappears when you log in on another device or browser because the cart is stored in that browser's cookie, not on your account. This is Shopify's expected default behavior, not a bug or lost data. Adding a persistent cart saves the cart to the account so it stops vanishing.

Last updated 2026-07-06

What's happening when your Shopify cart disappears?

Your cart disappears because it was stored in one browser, and you're now looking at a different one. A default Shopify cart is saved in a browser cookie — Shopify's own cookie policy lists a "cart" cookie that holds the cart's contents for about two weeks. That cookie belongs to a single browser on a single device. When you log in on another device, open a different browser, or your phone and laptop don't share state, the new browser has no copy of those items, so the cart looks empty.

Logging in doesn't fix it, because signing in identifies you but doesn't move the cart onto your account. The items are still sitting in the original browser's cookie; the device you're on now just can't see them. That's the whole mechanism — it's about where the cart is stored, not about anything going wrong.

Is this a bug or lost data?

No — it's expected default behavior, and nothing is corrupted. Shopify intentionally keeps the cart in a browser cookie rather than on the customer account, so a cart that doesn't cross devices is the platform working as designed, not a fault in your store or your theme. Shopify staff have said the same in community answers: cart data is tied to the specific device and browser the customer uses, and syncing it across devices would require custom code.

Your data isn't lost, either. The original cart still exists in the browser that built it — go back to that phone or that browser within about two weeks and the items are usually right where you left them. The cart only looks gone from the other device because that device never had a copy. There's no corruption and nothing to repair; it's simply a question of where the cart lives.

Why does it only happen across devices, logins, or browsers?

Because the cart cookie is locked to one browser. Inside the browser that built the cart, everything persists as expected: you can close the tab, come back hours or days later, and the cart is still there for roughly two weeks. The trouble only appears when you cross a boundary the cookie can't — a second device, a separate browser, or sometimes an in-app browser versus your normal one.

That's why the symptom shows up as my cart is on my phone but not my laptop, or my cart emptied after I logged in on another computer. In each case you've moved to a browser that doesn't hold the cookie. Signing in feels like it should carry the cart with you, but by default it doesn't — the login and the cart are simply stored in different places.

How do you fix it?

Add a persistent cart so the cart saves to the account instead of one browser. Persistent Cart, a Shopify app, saves a logged-in shopper's cart against their customer record and restores it wherever they sign in next — phone, laptop, or a new browser — merging it in silently by default, with no popup or email. Once it's on, the cart stops disappearing across devices for your signed-in customers, the same way it doesn't disappear at Amazon or Walmart.

Setup is one click and one switch: install from the Shopify App Store, then enable the app embed in your theme editor — no theme code. One caveat worth setting straight: this covers signed-in shoppers, since the cart is tied to an account. Guests keep the standard single-browser cart. For stores with repeat or logged-in customers, that one switch is what turns where did my cart go into a cart that's simply there.

Questions, answered

Why does my Shopify cart empty when I log in?

Because logging in doesn't move your cart onto your account — it stays in the browser that built it. By default Shopify keeps the cart in a browser cookie, so if you log in on a different device or browser than the one where you added items, the new session has no copy and shows an empty cart. The original items are still in the first browser; this is default behavior, not a bug.

Is my cart data lost or corrupted when the cart disappears?

No. Nothing is corrupted and nothing is deleted. The cart still exists in the browser and device where you created it, held in a cookie for about two weeks — return there and the items are usually intact. The cart only looks gone from a second device or browser because that one never held a copy. It's a storage-location issue, not data loss.

Why does my cart show on my phone but not my laptop?

Because your phone and laptop use separate browser cookies, and a default Shopify cart lives in one of them at a time. The cart you built on your phone is saved in the phone's browser; your laptop's browser never received those items, so it shows empty — even after you log in. Adding a persistent cart saves the cart to your account so it appears on both.

How do I stop my Shopify cart from disappearing across devices?

Install a persistent cart app. Persistent Cart saves a signed-in shopper's cart to their account and restores it on any device they log in from, merging it silently by default. Setup is one click to install plus one switch to enable the app embed — no theme code. It covers logged-in customers, since the cart is tied to an account; guests keep the standard single-browser cart.

Stop losing signed-in carts across devices.

Add Persistent Cart in one click — free to start, nothing for your shoppers to do.