title: Coldfusion cfscript cookies won't allow for blank expire
body: <p>I'm trying to use cfscript cookies in CF10 to set a cookie which should be removed when the browser is closed. I can do it via <code>set-header</code>, or <code>&lt;cfcookie&gt;</code>, but unable to do it through the struct cookie approach.</p>
  
  <p>Does anyone know of a better workaround than using <code>set-header</code>? (staying inside cfscript tags)</p>
  
  <pre><code>&lt;cfscript&gt;
      // Set-Cookie:TEST1=hello; Expires=Sun, 07-Aug-2044 17:51:26 GMT; Path=/; HttpOnly
      cookie.test1 = {value="hello", httponly=true};
  
      // Set-Cookie:TEST3=hello; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
      cookie.test3 = {value="hello", httponly=true, expires="0"};
  
      // Set-Cookie:TEST4=hello; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
      cookie.test4 = {value="hello", httponly=true, expires="-1"};
  
      // this throws an exception
      //cookie.test5 = {value="hello", httponly=true, expires=""};
  &lt;/cfscript&gt;
  
  &lt;!--- Set-Cookie:TEST2=hello2; Path=/; HttpOnly ---&gt;
  &lt;cfcookie name="test2" value="hello2" httponly="true"&gt;
  </code></pre>