multi
multi copied to clipboard
Separate cookies when using multiple instances of the same website
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!
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
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:
- Implementing Your Own Cookie Storage
- Handling Cookies Created in JavaScript for your Custom Cookie Jar
Could those be helpful?
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 😅
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.)