Skip to content

no concurrency support when using session cookies #139

@codecounselor

Description

@codecounselor

Need to create a new (in-memory) session for every window that is created, otherwise concurrent requests will use the cookies applied to the single session created by the main process.

    // This creates a new session for every browser window, otherwise the same
    // default session is used from the main process which would break support
    // for concurrency
    // see http://electron.atom.io/docs/api/browser-window/#new-browserwindowoptions options.partition
    if( args.cookies ){
      defaultOpts.webPreferences.partition = uuid()
    }

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions