2

Within the JS of a Spotify application, I'm saving a cookie, which can be retrieved fine within other pages of the same application.

However, after quitting and starting Spotify again, the cookie is not there anymore.

Any ideas as to why this happens?

Bart
  • 19,692
  • 7
  • 68
  • 77
Alex
  • 7,432
  • 20
  • 75
  • 118

1 Answers1

1

Use localstarage instead. Cookies are not stored on disk.

 localStorage.setItem("name", "Hello World!"); 



 localStorage.getItem("name"); // Hello World!
Christian Landgren
  • 13,127
  • 6
  • 35
  • 31