I am using the setCookie() and getCookie() functions posted in an answer to this question
Cannot set cookies in Javascript
When I set the cookie and reload the page, the cookie is there and working properly. But when I open a new tab (or close my current tab and reopen it) the cookie disappears. Is this because I'm developing locally or for some other reason?