Are cookies only suitable for use on the client side?

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.

+3
source share
4 answers

LocalStorage  this is the way. Just watch this great presentation .

+1
source
+3

( , ).

, - .

.

+1

Cookies pre-ajax , . , . , IE7 , . , , , , , cookie. . IE6 , IE7 , . , , . .

0
source

All Articles