Separate session for each window

前端 未结 3 1909
萌比男神i
萌比男神i 2021-02-01 04:01

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 wi

3条回答
  •  天涯浪人
    2021-02-01 04:45

    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"
    

提交回复
热议问题