session.defaultSession.clearStorageData([], (data) => {})
Note that the session has to be the one attached the browserwindow. So normally this data will be accessible only on the point where it is attached to the browser window.
references:
https://stackoverflow.com/questions/37520322/electronjs-how-to-clear-all-cookies-from-a-session
No comments:
Post a Comment