Example of the cookie option

This commit is contained in:
Min-Soo Kim 2018-08-02 00:35:27 +09:00
parent d090f402cc
commit 93a35c251b
10 changed files with 36 additions and 4 deletions

View file

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