• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Cookies are not saved after reboot

Engaged ,
Dec 12, 2019 Dec 12, 2019

Copy link to clipboard

Copied

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 "";
}

 

  

 

TOPICS
Actions and scripting

Views

317

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation
Adobe