mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 16:51:40 +09:00
Fix setCookie() in JS not respecting zero expires
https://xetown.com/questions/1377668
This commit is contained in:
parent
351cd825cf
commit
6774767f6f
1 changed files with 6 additions and 3 deletions
|
|
@ -1102,11 +1102,14 @@ function getOuterHTML(obj) {
|
|||
}
|
||||
|
||||
function setCookie(name, value, expires, path) {
|
||||
XE.cookie.set(name, value, {
|
||||
expires: expires ? expires : 0,
|
||||
var options = {
|
||||
path: path ? path : "/",
|
||||
secure: cookies_ssl ? true : false
|
||||
});
|
||||
};
|
||||
if (expires) {
|
||||
options.expires = expires;
|
||||
}
|
||||
XE.cookie.set(name, value, options);
|
||||
}
|
||||
|
||||
function getCookie(name) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue