title: My Javascript cookie expires at session, not in 30 days
body: <pre><code>jQuery(document).ready(function(){
          if (document.cookie.indexOf('visited=true') === -1) {
              var expires = new Date();
              expires.setDate(expires.getDate()+30);
              document.cookie = "visited=true; path=/; expires="+expires.toUTCString();
              jQuery.colorbox({open:true,href:"&lt;?=home_url()?&gt;/popup/?site_type=2",iframe:true, innerWidth:"700px", innerHeight:"410px"});
          }                   
  });
  </code></pre>
  
  <p>This cookie expires when I shut down the browser, but I want it to last for 30 days until they see the popup again.</p>