Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Other Alternatives to Cookies

I am using cookies to store data at client end for later access. But my concern is I am unable to set more than 20 cookies and I am looking for alternative to cookies.
Please help me on this

 Updated

I found jStorage plugin here But it does not work for me in this case..

like image 969
Exception Avatar asked Dec 13 '11 11:12

Exception


1 Answers

You can leverage local/session storage of HTML5

To save a value:

localStorage.name = "Bob";

To get a value:

alert(localStorage.name);

http://www.w3.org/TR/webstorage/

like image 86
Pavan Avatar answered Sep 27 '22 16:09

Pavan