1

I am building web store using Meteor and having issues with adding items to my cart. Right now, each cart is uniquely identified by a Session ID. However, if I have two browser tabs open, each tab will have its own Session ID. Therefore, is there a method or technique I can use to create a Session ID that is constant across all browser tabs?

Thank you!

Trung Tran
  • 13,141
  • 42
  • 113
  • 200

1 Answers1

1

You have two option here:

  1. Save on temporary collection on server where it will persist across browsers / devices.

  2. Use localStrorage where it will persist acroos tab on the same browser. Take a look AmplifyJS Store and meteor-persistent-session.

Firdaus Ramlan
  • 1,146
  • 8
  • 11