printdotio / pio.js

An embeddable widget that enables users to quickly and easily monetize a webpage by enabling photo-product sales of its images.
4 stars 0 forks source link

Items remain in cart after switching users #26

Open jheideman opened 10 years ago

jheideman commented 10 years ago
  1. Log in to pb
  2. Add to cart
  3. Log out, then log in as a different user

Observed: the items from the first user are still in the cart

micahasmith commented 10 years ago

@jheideman if you are doing a logout on your page calling PIO.clearCart() is recommended

jheideman commented 10 years ago

@micahasmith We don't want the cart cleared if the same user logs out and back in, though. Can you set a cookie per user instead of per computer? Not a critical issue.

micahasmith commented 10 years ago

since the framework is not based on your site, any special persistence rules you would need to build into it yourself using the getval and setval functions.

for now i would skip this-- we have a call with katie about distributed sessions coming up anyways (and this would necessarily be a subset of its func)