Guest User

Untitled

a guest
Oct 22nd, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. // Clear all local storage
  2.  
  3. window.localStorage.clear();
  4.  
  5. // Clear store in memory
  6.  
  7. Mango.stores.session.removeAll();
  8.  
  9. // Fake a session
  10.  
  11. Mango.stores.session.add({
  12. bonuscard: "444444444444",
  13. email: "john.smith@mail.com",
  14. firstname: "John",
  15. fuelperks: "0.00",
  16. id: 2,
  17. key: "550f05a5aa074e8a3d1a",
  18. lastname: "Smith",
  19. savings: "972.39",
  20. store: "999",
  21. username: "johnsmith",
  22. zavers: "",
  23. })
  24.  
  25. Mango.stores.session.sync();
Add Comment
Please, Sign In to add comment