Skip to content

Problem with session management/cart with swell-js library - desperate for help #409

Answered by johnrisby
johnrisby asked this question in Help
Discussion options

You must be logged in to vote

After wasting days waiting for support to get back to me, today I wrote a clean test app to make sure everything was working as I thought and the results are worrying and raises privacy issues, usability issues, and lost sales from a broken abandoned cart feautre.

swell-js api docs say to use account.login and account.logout.

What happens is this:

You call account.login and it sets a session cookie in the browser.

If the customer adds to their cart, it is saved in that session in the browser and it is also sent to the Swell servers. You can see the carts in the admin section under Orders/Carts.

While the user is logged in, you can see that a particular cart in the admin section and who it…

Replies: 2 comments 9 replies

Comment options

You must be logged in to vote
3 replies
@coderreco
Comment options

@ericingram
Comment options

@johnrisby
Comment options

Answer selected by johnrisby
Comment options

You must be logged in to vote
6 replies
@cwierzbicki00
Comment options

@stafyniaksacha
Comment options

@johnrisby
Comment options

@vettloffah
Comment options

@virajsoni06
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
7 participants