Skip to main content
Participant
December 29, 2017
Question

Illustrator CC 2018 issues with cookies and local storage

  • December 29, 2017
  • 2 replies
  • 709 views

I've been using persistent cookies to save a few user settings in my extensions for Illustrator for a while now, but with the switch to CC 2018 the cookies stopped working. I also tried switching to HTML5's local storage without success.

I started running some tests with the CEP_HTML_Test_Extension, which has a section for testing cookies (under HTML1) and for testing local storage (under HTML 2).

While Illustrator doesn't work, I noticed that Photoshop does - it keeps both cookies and local storage between sessions. However, if you open and close Illustrator, both Photoshop and Illustrator lose their cookies and local storage.

It seems like whenever Illustrator closes, it deletes the cookie cache directory for all extensions (on Mac, ~/Library/Caches/CSXS/cep_cache). If you have this folder open when you close Illustrator, you can see it vanish. It's possible that this may be a Mac issue, as I don't have a PC to test this on.

Has anyone else run into this problem?

Thanks!

This topic has been closed for replies.

2 replies

Ten A
Community Expert
Community Expert
January 10, 2018

Local Storage works fine in my Extensions and CEP HTML Sample Extension also works correctly in my El Captain.

Here is a screenshot, after relaunch Illustrator and load local storage in HTML Modal dialog extension.

Caches also keep after Illustrator quit.

indy00Author
Participant
January 11, 2018

Hmm, my Mac is running High Sierra, maybe that's the source of the problem.

For now I guess I can switch back to outside storage. That's what I had been using a while back anyway.

Thanks!

Trevor:
Legend
January 3, 2018

I and I know that quite a few other developers store cookies outside of the standard cookie folder and that solves the problem.

I've never tried using the built in cookie system but I have heard there is a problem.

Maybe added it to the CEP8 bug thread. CEP 8 issues list