How do multiple pages share session


#1

HI,
i use electron to load a online page which will open a new page(window.open). But the new window can’t read the session record wrote by the first page. So how can i make the two pages share the same session?


#2

you can create an invisible window to handle background tasks
var win = new BrowserWindow({ width: 400, height: 225, show: false })

As per the new API Docs App