diff --git a/lib/misc.js b/lib/misc.js index 34d9eafe..7599aef9 100644 --- a/lib/misc.js +++ b/lib/misc.js @@ -196,7 +196,7 @@ Volcanos("misc", {Message: function(event, can) { var msg = {} return search? location.search = search: location.href = location.pathname }, CookieSessid: function(can, value, path) { - return can.misc.Cookie(can, ice.MSG_SESSID+"_"+can.base.replaceAll(location.port, ice.PT, "_", ice.DF, "_"), value, path) + return can.misc.Cookie(can, ice.MSG_SESSID+"_"+(can.base.replaceAll(location.port, ice.PT, "_", ice.DF, "_")||(location.protocol == "https:"? "443": "80")), value, path) return can.misc.Cookie(can, ice.MSG_SESSID+"_"+can.base.replaceAll(location.host, ice.PT, "_", ice.DF, "_"), value, path) }, Cookie: function(can, key, value, path) {