how to get/set cookies #389

Open
opened 2026-01-29 16:38:21 +00:00 by claunia · 0 comments
Owner

Originally created by @theiviaxx on GitHub (Oct 3, 2019).

previously i added an event in the ipc.js file and built a custom nuget package for ElectronNET.Host, but i'd like to move away from that and just use the official releases.
However, i dont see anything on the Session object that would get a cookie

my code before was

electron_1.ipcMain.on('cookies', (event, args) => {
    electron_1.session.defaultSession.cookies.get({}, (error, cookies) => {
        event.sender.send('cookies', cookies);
    });
});
Originally created by @theiviaxx on GitHub (Oct 3, 2019). previously i added an event in the ipc.js file and built a custom nuget package for ElectronNET.Host, but i'd like to move away from that and just use the official releases. However, i dont see anything on the Session object that would get a cookie my code before was ```` electron_1.ipcMain.on('cookies', (event, args) => { electron_1.session.defaultSession.cookies.get({}, (error, cookies) => { event.sender.send('cookies', cookies); }); });
claunia added the question label 2026-01-29 16:38:21 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#389