title: Cookie's expires property cannot be inspected
body: <p>I try to set a cookie in browser ( here chrome ver.41.xxx ) using debugger's console:</p>
  
  <pre><code>&gt; document.cookie = 'cookie1=hans; expires=Fri, 03 May 2020 11:00:00 GMT;'
  </code></pre>
  
  <p>Then, I inspect the <code>.cookie</code> property:</p>
  
  <pre><code>&gt; document.cookie 
  &gt; "cookie1=Hans"
  </code></pre>
  
  <p>Surprisingly, no <code>expires</code> section! Fiddler also reports the same when I refresh the page:</p>
  
  <p><img src="https://i.stack.imgur.com/sXPjT.png" alt="enter image description here"></p>
  
  <p>These are enough for me to believe that expires property is not set.
  <strong>But, I get more surprised when I see the cookie expires using <a href="http://www.editthiscookie.com/" rel="nofollow noreferrer">EditThisCookie</a> extension</strong>
  <br/></p>
  
  <p><img src="https://i.stack.imgur.com/IE0D3.png" alt="enter image description here"></p>
  
  <p>I tried to set the cookie using JavaScript in my code and exactly the same result!</p>
  
  <p><strong>Question:</strong> How can I make sure that the <code>expires</code> property of the cookie is set?</p>