multi icon indicating copy to clipboard operation
multi copied to clipboard

Separate cookies when using multiple instances of the same website

Open mileyvirus opened this issue 4 years ago • 4 comments

Hello! I'd love for you to consider this:

if I add the same website socialnetwork.com twice, if I login in ⌘1 and then I login in ⌘2, logging in ⌘2 overwrites the session in ⌘1.

It would be great to separate the two!

mileyvirus avatar May 26 '20 10:05 mileyvirus

I really like this idea, and looked into implementing it today. Unfortunately it's not possible with the WebKit we have today. The best I can do is add an "Incognito/Private Browsing" feature, which would separate each tab's cookies and other data... but has the downside of completely resetting every time you close the app. I think I will add some way to do private sessions, but I have a feeling that won't work for your use case. Sorry about that.

Here are the docs if anyone reading this wants to investigate further: https://developer.apple.com/documentation/webkit/wkwebsitedatastore#2903137

kofigumbs avatar May 30 '20 18:05 kofigumbs

An app I'm using, Slidepad, is using WebKit and can correctly achieve separate sessions/cookie jars so I'm sure it's possible. After a quick googling I found this implementation in Swift based on these two articles:

Could those be helpful?

mileyvirus avatar May 31 '20 22:05 mileyvirus

Oh cool, thanks for doing that legwork! I'll keep this on my list then, although I can't say any timeline for certain. There's more code in each of those articles than there currently is in all of Multi 😅

kofigumbs avatar Jun 01 '20 02:06 kofigumbs

I see this hasn't been touched since 2020 ... so I'm chiming in that I would love to see this feature as well.

(I would like to have several Google Photos accounts open in different tabs of the same window.)

dzg avatar Aug 15 '23 18:08 dzg