Save session cookies on quit


#1

Total electron n00b here.

I’ve built a very simple wrapper by following the quick start guide, removing index.html and opening a browser with a URL that points to the web. So far so good.

I can then login to my site, and view the cookies in the developer tools storage pane. However, when I quit the app and reopen, the cookies have all been deleted and I have to start over.

How do I save the session cookies so they’re there when I restart the app? I’ve seem some reference to them being stored in a userDefaults directory (I think?), but that never seems to be being created.

I’m using the Mac OS X downloaded binary, if that makes a difference.

TIA!

Tom