问题
Does anyone know of a browser extension (preferably Firefox) that allows you to create independent cookie stores at a finer (and configurable) granularity than the specification?
E.g. say http://a.example.com/ first sends
Set-Cookie: a=bar; expires=Fri, 31-Dec-2010 23:59:59 GMT; path=/; domain=.example.com
So clearly this would also be sent by Firefox for anything subsequently requested under http://b.example.com/ . I want the extension to not send the header for b.example.com. Typically, this will cause b.example.com to send a different set-cookie header, which would then be resent only for b.example.com. The idea is to create multiple independent sessions on the same site.
It would be an added bonus if it supported other granularity schemes (e.g. http://example.com/a/ is separate from http://example.com/b/).
This strikes me as somewhat similar to Applications Boundaries Enforcer, but different and not within its scope (though I could be wrong).
Finally, I'm aware that this could give you enough rope to hang yourself.
回答1:
You can do something similar (multiple browser windows with different cookies and settings) with Chrome's multiple user feature.
This might be doable with Firefox profiles too, and -no-remote
.
来源:https://stackoverflow.com/questions/2152691/browser-extension-to-create-independent-cookie-stores-narrower-than-spec