Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

Commit

Permalink
Added path to cookie setter so that every new path doesn’t create a n…
Browse files Browse the repository at this point in the history
…ew cookie
  • Loading branch information
lorgio committed Jul 19, 2018
1 parent 091a6d9 commit 924613a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@
"mocha": "^2.4.5",
"run-sequence": "^1.2.2",
"serve-static": "^1.10.2",
"zombie": "^4.2.1"
"zombie": "^5.0.8"
}
}
2 changes: 1 addition & 1 deletion src/xdomain_cookie.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
function _set_local_cookie( cookie_name, cookie_value, expires_days ){
var d = new Date();
d.setTime(d.getTime() + ( expires_days*1000*60*60*24) );
var cookie_val = cookie_name + "=" + cookie_value + "; expires="+d.toUTCString() + (_secure_only ? ";secure" : "");
var cookie_val = cookie_name + "=" + cookie_value + "; expires="+d.toUTCString() + (_secure_only ? ";secure" : "") + "; path=/";
_log("_set_local_cookie", cookie_val);
document.cookie = cookie_val;
}
Expand Down

0 comments on commit 924613a

Please sign in to comment.