Hi,
I create an extension and I use the functions below to store and restore my panel coockies.
All is working well, even when I close PS and open start it again.
However, asfter rebooting my PC the the coockies are not saved.
Actually I'm not sure it is because of a restart but they do disappear.
My querations are:
What can delete my coockies? Are they related to specific extention and where are they stores?
Perhaps there is a 3rd party app which deletes/clean them?
I have latest win10 with latest PS installed
function setCookie(cname, cvalue, exdays) {
var d = new Date();
d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000));
var expires = "expires=" + d.toUTCString();
document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";
}//setCookie
function getCookie(cname) {
var name = cname + "=";
var ca = document.cookie.split(';');
for (var i = 0; i < ca.length; i++) {
var c = ca[i];
while (c.charAt(0) == ' ') {
c = c.substring(1);
}
if (c.indexOf(name) == 0) {
return c.substring(name.length, c.length);
}
}
return "";
}