Ignore Expires if not defined

This commit is contained in:
斟酌 鵬兄 2015-08-17 18:08:00 +08:00
parent 91fcf1f5c7
commit b95fa5505c

View File

@ -36,7 +36,7 @@ Cookie.prototype.toString = function()
}
cookieStr += i + "=" + this.param[i] + ";";
}
cookieStr += "Path=" + p + ";" + " Expires=" + e + ";";
cookieStr += "Path=" + p + ";" + ( e ? ( " Expires=" + e + ";" ) : "" );
return cookieStr;
};