fixed session cookie to work with IE
[Evergreen.git] / Open-ILS / web / opac / common / js / Cookies.js
index 97c6d48..21b8dc8 100644 (file)
@@ -86,7 +86,7 @@ HTTP.Cookies.prototype.write = function (name, value, expires, path, domain, sec
       Now.setTime(Now.getTime() + this.date.parse(expires));
       expires = Now.toGMTString();
    }
-   if(expires) extra += "; expires=" + expires;
+   if(expires != -1 && expires) extra += "; expires=" + expires;
    if(path   ) extra += "; path="    + path;
    if(domain ) extra += "; domain="  + domain;
    if(secure ) extra += "; secure="  + secure;