HTML5 includes a spec called LocalStorage, which allows you to store some information in the clients browser like cookies has in the past. This method is great because cookies are tiny in size and very insecure.
There is a nice article about it here:
http://diveintohtml5.info/storage.html