Revert "Improve cookie secure setting values"

This reverts commit 73da2af393.
This commit is contained in:
Kijin Sung 2018-04-23 00:43:24 +09:00
parent cfca05c897
commit 591e9cb270
6 changed files with 7 additions and 12 deletions

View file

@ -1055,8 +1055,7 @@ function getOuterHTML(obj) {
function setCookie(name, value, expire, path) {
var s_cookie = name + "=" + escape(value) +
((!expire) ? "" : ("; expires=" + expire.toGMTString())) +
"; path=" + ((!path) ? "/" : path) +
((enforce_ssl) ? ";secure" : "");
"; path=" + ((!path) ? "/" : path);
document.cookie = s_cookie;
}