title: Is it possible for jQuery cookies to expire like session variables?
body: <p>I know this question has been asked a thousand times but none of the answers really give me what I'm looking for. I am using <a href="https://github.com/carhartl/jquery-cookie">jQuery cookie</a> to store some information, but I want them to expire when the browser closes. <code>window.unload</code> is not a viable option (read: doesn't work.)</p>
  
  <p>My question is this: is it <em>actually possible</em> to have the cookies set to expire when the browser closes, like a session? If so, does anyone know how?</p>
  
  <p><strong>Update:</strong> Turns out it's quite simple, instead of passing expiry: 0 (which didn't work), just don't pass any expiry at all. Well, this explains why there wasn't many questions.</p>
  
  <p>Thanks all.</p>