 <p>I guess you are not using server side code. If that is the case, I suggest you to read this short tutorial on Javascript and cookies from w3schools:</p> <p><a href="http://www.w3schools.com/js/js_cookies.asp" rel="nofollow">http://www.w3schools.com/js/js_cookies.asp</a></p>