-
Notifications
You must be signed in to change notification settings - Fork 295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cart and Login session wiped when browser is closed #919
Comments
This is due to the demo store not using the session abstraction, and instead manually writing a |
Thanks @blittle. Isn't the new abstraction still setting cookies in the header? I don't think this is related to cart implementation since all the session cookie is also not persisting after the browser is closed. This is affecting customer authentication as it logs out the customer after they close the browser. I think the demo store forgot to set |
@steve-jiang you are correct, that will need to change. |
This is still an issue with the new cart abstraction and probably leading to some lost conversions, hopefully this is being worked on? |
Looks like we can pass cookie options as seen here which seems to fix the issue 🎉 :
|
Close due to inactivity |
What is the location of your example repository?
hydrogen.demo or shopify.supply
Which package or tool is having this issue?
Hydrogen
What version of that package or tool are you using?
2023.4.1
What version of Remix are you using?
1.15
Steps to Reproduce
Expected Behavior
Cart and Login session should persist when closing and reopening the browser.
Shopify online store persists the session when closing and reopening the browser.
Actual Behavior
Neither cart nor login session data persisted
This is especially bad when a customer uses a mobile device and they do the normal swipe up from the screen bottom and close an app. If they close Safari, the cart/login gets cleared. Can confirm this happens on both standard and private mode of Safari on IOS.
The text was updated successfully, but these errors were encountered: