Page 1 of 1
clearing all cookies,cache,etc at runtime
Posted: Sun May 13, 2018 5:24 pm
by snoop
Hello! How can I clear all cookies, cache and everything while running my app? Deleting both from current memory and from folders also. Thanks!
Re: clearing all cookies,cache,etc at runtime
Posted: Mon May 14, 2018 2:53 pm
by salvadordf
Hi,
You can delete the cookies anytime you want using TChromium.DeleteCookies but CEF3 doesn't have a "clear cache" function to delete the cache while a CEF app is running.
There are some workarounds explained here :
https://www.briskbard.com/forum/viewtopic.php?t=248
Re: clearing all cookies,cache,etc at runtime
Posted: Tue May 15, 2018 9:12 am
by snoop
Thank you.. How then all the real browsers can clear and delete all cache while running?
Re: clearing all cookies,cache,etc at runtime
Posted: Tue May 15, 2018 10:47 am
by salvadordf
That functionality is available inside Chromium but CEF3 doesn't expose it. CEF4Delphi uses CEF3's C API but it can't access Chromium functions directly.

Re: clearing all cookies,cache,etc at runtime
Posted: Wed May 23, 2018 9:04 pm
by snoop
any way to access advanced functions?
also, any way to change canvas hash, webGL hash, etc related to fingerprints?
Re: clearing all cookies,cache,etc at runtime
Posted: Thu May 24, 2018 6:21 am
by salvadordf
As far as I know, you can only fork and modify those open source projects to expose the hidden features.
Re: clearing all cookies,cache,etc at runtime
Posted: Sun May 27, 2018 12:57 pm
by snoop
salvadordf wrote: Thu May 24, 2018 6:21 am
As far as I know, you can only fork and modify those open source projects to expose the hidden features.
Sorry, I did not understand. Is it possible? At least with deep digging in cef4delphi code?
Re: clearing all cookies,cache,etc at runtime
Posted: Sun May 27, 2018 2:09 pm
by salvadordf
snoop wrote: Sun May 27, 2018 12:57 pm
salvadordf wrote: Thu May 24, 2018 6:21 am
As far as I know, you can only fork and modify those open source projects to expose the hidden features.
Sorry, I did not understand. Is it possible? At least with deep digging in cef4delphi code?
It's not possible to have those features if you
only modify CEF4Delphi.
CEF3 can only access what the Chromium project allows it to access and CEF4Delphi can only access what's defined in the CEF3's API.
You would need to modify CEF3's code first and possibly Chromium's code too.
After that, you would also need to modify CEF4Delphi to handle the
new API calls that you have added to CEF3.
In short : depending on the features you want, you would need to dig deep in Chromium's code, then dig deep in CEF3's code and after that you would need to modify CEF4Delphi and your application.
Re: clearing all cookies,cache,etc at runtime
Posted: Tue Jun 05, 2018 11:30 pm
by snoop
Hello salvadordf
Thanks again. I find it strange that some functions seems basic and impossible. I can understand that changing some hashes is advanced and can be hidden from regular users, but why its impossible to delete all cache at runtime for example? This is just ritoric question for chromium, not for you
But I have a new question for you
How can I catch and view result of request which is done while loading page?
I mean:
Im loading URL of one site. (using LoadURL function)
It also calls some POST request (I sniffed that). I need result of it.
Re: clearing all cookies,cache,etc at runtime
Posted: Wed Jun 06, 2018 6:37 am
by salvadordf
The response is available in the TChromium.OnResourceResponse and TChromium.OnResourceLoadComplete events.
If you need the contents, set a filter in the TChromium.OnGetResourceResponseFilter event. The ResponseFilterBrowser demo has all the code for this method.
If those calls are made from JavaScript then I'm not sure if CEF will trigger any of these events.