var date = new Date(new Date().getTime() + 60 * 1000); document.cookie = "name=value; path=/; expires=" + date.toUTCString();