Separate session for each window

Mukul Jain picture Mukul Jain · Nov 9, 2012 · Viewed 28.2k times · Source

I am trying to create an extension where each window of chrome has its own session. We used incognito earlier, but the problem is that while the main window and the incognito window have separate sessions, the session is shared between the various incognito windows.

Is there any way of configuring chrome to use a separate session every time an incognito window is opened?

Answer

Jerry Z. picture Jerry Z. · Apr 16, 2015

Your goal will be start a Chrome instance with a new user data directory. The cookies will be isolated in each instance. In the extension to implement a way to reach the same goal as this command on cmd:

chrome.exe --user-data-dir="C:\temp\user1"