set prefence cookie for domain and subdomain
This commit is contained in:
parent
2a80408cd5
commit
19be21f3bd
|
@ -19,7 +19,7 @@
|
|||
date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
|
||||
expires = "; expires=" + date.toUTCString();
|
||||
}
|
||||
document.cookie = name + "=" + value + expires + "; path=/;SameSite=Strict";
|
||||
document.cookie = name + "=" + value + "; domain=.basspistol.com" + expires + "; path=/;SameSite=Strict";
|
||||
}
|
||||
function readCookie(name) {
|
||||
var nameEQ = name + "=";
|
||||
|
|
Loading…
Reference in a new issue