anthill / 6element

Optimising waste management in recycle centers.
http://weareants.fr/#!/6element
14 stars 13 forks source link

Use localStorage instead of cookies #192

Closed DavidBruant closed 8 years ago

SergeBredin commented 8 years ago

I am not comfortable with that. This week, we will add a credit page and mention cookies.

DavidBruant commented 8 years ago

Not sure what there is to be uncomfortable with. For a use case like saving favs, every resource on the web will tell to use localStorage instead of cookies. It's what I teach in training as well. Browsers are being more and more aggressive at removing cookies because of tracking usages, cookies are unreliable to save favorites.

Examples : https://developer.mozilla.org/en-US/docs/Web/API/Storage#Examples

Until you have user accounts, you don't need cookies at all.