fixed session cookie to work with IE
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 4 Sep 2006 00:23:06 +0000 (00:23 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 4 Sep 2006 00:23:06 +0000 (00:23 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@5908 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/opac/common/js/Cookies.js
Open-ILS/web/opac/common/js/opac_utils.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;
index 0350ca6..fabaf47 100644 (file)
@@ -478,7 +478,6 @@ function grabUser(ses, force) {
        G.user.session = ses;
        cookieManager.write(COOKIE_SES, ses, -1);
 
-
        grabUserPrefs();
        if(G.user.prefs['opac.hits_per_page'])
                COUNT = parseInt(G.user.prefs['opac.hits_per_page']);