Aware of issues like:
- Cookies are included with every HTTP request, thereby slowing down your web application by needlessly transmitting the same data over and over
- Cookies are included with every HTTP request, thereby sending data unencrypted over the internet (unless your entire web application is served over SSL)
- Cookies are limited to about 4 KB of data — enough to slow down your application (see above), but not enough to be terribly useful
(from: http://diveintohtml5.info/storage.html)
I decided to use localstorage instead of cookies.
QUESTION: Can I limit localstorage context to certain path like with cookies?