[Project_owners] Specific cookie for specific tab
Jesper Staun Hansen
jesper at selvet.dk
Tue Jan 29 16:07:12 PST 2008
Sure will look into it.
Had a little horrible experience trying "CookieSwap". It sure works, but
when I swapped between profile, and me being so cookie aware that i am
using "Keep until: Ask me every time" for cookies, (my list of blocked
cookies is 3½ times longer than my cookielist), then the extension
apparently made firefox visit all of the sites I have cookies fore and
started asking me again "What do you want to do with this cookie?" And I
was thinking "oh fu..", as that list takes a long time to reach. I have
absolutely no idea how "CookieSwap" omitted my list or why it started
visiting all my sites again just to ask for checking cookies.
> Actually I wrote an extension that does exactly what you're looking for.
> I haven't worked on it for a while, but I did complete the tab
> specific cookie jars which should do what you want. I ran into trouble
> dealing with AJAX http requests that dealing with persistent cookies.
> My extension only works on session cookies at the moment.
> Unfortunately all this request and response manipulation and
> examination added a bit of latency which I have yet to spend time to
> You might need to pull it from CVS to get the latest code. I also
> have a shell script in there that will package the XPI file for you,
> it's pretty simple.
> Hopefully that helps you some. If you have any questions on how it
> works, feel free to email me. All of the controls for the extension
> are in the right click context menu. You can even edit cookies by hand
> through the "Manage Cookie Jars" dialog if I remember correctly.
> On Jan 29, 2008 3:22 PM, Jesper Staun Hansen <jesper at selvet.dk> wrote:
>> I was wondering if this is possible:
>> For a specific tab is one specific cookie like this used;
>> CookieName: Userinfo
>> CookieValue: User=Brian&pass=Brianisusingalousypass
>> And for another tab is this cookie used;
>> CookieName: Userinfo
>> CookieValue: User=TheAdmin&pass=TheAdminHasABetterOne
>> Has anyone ever tried this before? And is it even possible? It actually
>> should be possible, but how would I manage to tell this tab to be the
>> admin and the other to be Brian.
>> Should be able to manipulate the http headers manually, but missing the
>> This isn't much help:
>> http://developer.mozilla.org/en/docs/Setting_HTTP_request_headers Or I
>> am just misreading it all.
>> I can't tell how to overwrite a specific header-response from that link.
>> And another thing i need to do is to avoid that Admin cookie overwrites
>> Brians cookie in the cookie database.
>> So, any thoughts?
>> Project_owners mailing list
>> Project_owners at mozdev.org
More information about the Project_owners