cookie_jar
cookie_jar copied to clipboard
Export delete and more fine grained delete
The delete
and deleteAll
functions are not in the abstract class for CookeJar, so they cannot be called from a new CookieJar()
instance.
i.e., this does not work:
var c = new CookieJar();
c.deleteAll();
Also, please provide a way to delete an individual cookie value from a domain, as in:
cookie.delete("mydomain", "mycookiename");
I too was looking for this same functionality. I need to delete a cookie and/or all cookies when I get an invalid response from my server. The cookies have stale information and I currently don't have a way to remove them.
It is supported in 3.0.0 (dev branch now).
bumping this, it would be really cool if we could delete specific cookie names as mentioned in the description