Removal of specific cookie
I am looking for a method in which I could delete a designated cookie that has a specific name AND path. Normally deleting a cookie isn't an issue, but I am looking at a situation where I can have 2 or more cookies with the exact same name, and by default "cookie remove " deletes the oldest cookie that has the given name, with no other designated option for deletion that I know of.
I simply can't even come up with any sort of solution to even interact with any cookie with the shared names, except for the oldest. For example, even my attempt at iterating through all cookies (with will verify multiple cookies sharing the path, as does the count method) simply ends up accessing the oldest (the one with the root "/" path) multiple times:
HTTP::cookie insert name "abc1" value "testcookievalue1"
HTTP::cookie insert name "abc1" value "testcookievalue2" path "/DefinitelyAPath"
foreach aCookie [HTTP::cookie names] {
log local0. [HTTP::cookie path $aCookie]
}
Does anyone have a psosible alternative solution for this conundrum?