Skip navigation
Currently Being Moderated

Why cookies are not visible to javascript since 14.2 in HTML5 extensions?

Jan 31, 2014 12:13 AM

Using Photoshop 14.2


Before 14.2:


console.log(document.cookie); // this wasnt working



        success: function(d,s,r) { console.log r.getResponseHeader('set-cookie') } // this was working - I could read cookie

        type: 'post',

        data: { email: '', password: 'somepasswd' }



After 14.2:


Neither options work...

Just cant read cookie in javascript - but I am sure cookies work because on other api calls cookie is sent to server...

And I am sure that cookies options 'httpOnly' is set to false.

Even in chrome debugger under 'network' tab I cant see any cookies returned from server after api call.


Did Adobe change something with cookie management?


I need this to allow user to remember his account and auto login in extension. I know that cookies persist only during Host session but before 14.2 I could at least read cookie, save it to the file and after Host Application restart read the file and add cokkie to ajax call header... Now I cant do anything...

  • Currently Being Moderated
    Feb 6, 2014 8:00 PM   in reply to Airnauts

    This is a known issue of CEP (Common Extensibility Platform, a DLL that supports displaying extensions). Code like “document.cookie” in HTML extension is invalid because CEF (CEP integrated CEF3 to display HTML Extensions) intentionally disables cookies on "file://..." for a variety of reasons.


    However, CEP stores cookies at:

    Windows: "C:\Users\yourusername\AppData\Local\Temp\cep_cookies"

    Mac: "/Users/yourusername/Library/Logs/CSXS/cep_cookies"


    Please let me know if more information is needed, thanks

    Mark as:
  • Currently Being Moderated
    Feb 8, 2014 12:55 AM   in reply to Airnauts

    Hi Airnauts,

    We use webpage to test the CEP cookie-related function, could you please check whether it can work on your environment? This webpage uses “document.cookie” to get/set cookies.

    PS 14.2 integrated CEP (the PlugPlugOwl.dll in PS). If webpage above could not work on your machine, please check the version of PlugPlugOwl.dll.

    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points