cookie wiht no expiration is not deleted when the browser is restarted
<p>I use this function to to write cookies in the client:</p>

<pre><code>createCookie: function(name, value, days) {
    var expires = "";
    if (days) {
        var date = new Date();
        date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
        expires = "; expires=" + date.toGMTString();
    }
    document.cookie = name + "=" + value + expires + "; path=/";
}
</code></pre>

<p>and I set a cookie this way:</p>

<pre><code>createCookie("foo", "1"); // no expiration time
</code></pre>

<p>I expect the browser to delete this cookie when it is shut down and in fact it works like that most of the times. I noticed though, that in firefox this is not the case and the cookie remains there even after the restart. </p>

<p>I guess it depends on some settings that allow the user to freeze the state of the browser at the time when it is shut so that, when re-launching it, all the tabs you were using are still there and kicking. </p>

<p>Anyone has ever experienced something like that?</p>

<p>Any workaround you can recommend??</p>

<p>Cheers</p>
