Cookies API


#1

Hello Everyone,

I am a newbie to Electron (Atom-shell), Was figuring out the api provided in ATOM shell. While doing mock up codes. I was unable to find any api to retrieve cookies and delete specific cookies for domain.

Am i missing something, can someone put me in a right direction.

Mac : ~/Library/Application Support/applicationname/Cookies i deleted all were gone.
I assume similarly for windows appData/appname/cookies deletion will delete everything But is there any api to collect all Cookies and managet selective domains to delete them?

BTW, I just love the architecture and way atom is working embedding CEF and Node

Cheers!!!


#2

Electron v0.28.3 introduces a cookies API. Check out the browser-window documentation and look for WebContents.session.cookies.