getCookie, setCookie, localStorage.getItem, localStorage.setItem,
http://haiyang.me/html5/cookie_localStorage.html