Description
Describe the feature/enhancement you need
We need an API for deleting all cookies for the URI and domain/path as a single call.
PS This was not implemented with #84.
As that one is very old I was asked to opened a new one. This is not a duplicate!
The scenario/use case where you would use this feature
When user logs off and we need to clear all cookies for particular URL without touching all the other cookies. There is a workaround which is first to get all the cookies for said URL and delete one by one, but performance is just horrible if there are a lot of cookies. We tried to 'optimize' it by deleting all the cookies, but that doesn't work very well, because user gets logged off from other servers and from SSO. Thousands of end users are impacted.
How important is this request to you?
Impactful. My app's user experience would be significantly compromised without it.
Suggested implementation
ICoreWebView2CookieManager has a function DeleteCookies, but it takes a name (of the cookie) as a parameter and this parameter is required. We would like to be able to put nullptr there to be able to delete all the cookies.
There is also DeleteCookiesWithDomainAndPath function that has the same problem.
If there will be different functions without a name as a parameter that would also work of cause.
What does your app do? Is there a pending deadline for this request?
We are add-in for MS Office that is used by thousands of users. We use WebView2 for authentication and now we are moving to using it for all the networking. In the last case the problem becomes very impactful.
It would be great if we can have it implemented before December 1st.