I want to save some non-confidential data in the user's browser (or any device / mobile browser) for the next session. I can save this in cookies, but I do not want to send this cookie to any server requests.
I just need to store and retrieve about 5 key-value pairs, only on the client side. Is a cookie a good fit for this purpose or should I consider local storage? Cross-browser support is very important.
LocalStorage this is the way. Just watch this great presentation .
LocalStorage
localStorage .AmplifyJS cookie , .
localStorage
( , ).
, - .
.
Cookies pre-ajax , . , . , IE7 , . , , , , , cookie. . IE6 , IE7 , . , , . .