cookie_jar icon indicating copy to clipboard operation
cookie_jar copied to clipboard

Export delete and more fine grained delete

Open spekary opened this issue 5 years ago • 3 comments

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");

spekary avatar Apr 25 '19 09:04 spekary

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.

nathanbrizzee avatar Jul 05 '19 22:07 nathanbrizzee

It is supported in 3.0.0 (dev branch now).

wendux avatar Mar 03 '21 11:03 wendux

bumping this, it would be really cool if we could delete specific cookie names as mentioned in the description

ender1324 avatar Dec 28 '21 14:12 ender1324