Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.

TCefApplication no longer has a cookies property

Post Reply
JanDoggen
Posts: 12
Joined: Thu Sep 19, 2019 11:34 am

TCefApplication no longer has a cookies property

Post by JanDoggen »

The documentation at https://www.briskbard.com/index.php?lang=en&pageid=cef states that TCEFApplication has a cookies property. The current version no longer has that. Consequences:

- Documentation is out of date
- Sample apps are out of date

Is there still a way to specify the cookie directory?

TIA
Jan
User avatar
salvadordf
Posts: 4042
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: TCefApplication no longer has a cookies property

Post by salvadordf »

Hi Jan,

Thanks for reporting this issue!

I just uploaded a new CEF4Delphi version with all code comments about the "cookies" directory removed. The "cookies" property has also been removed from that web page.

I still need to add some other new features added to CEF4Delphi recently in that web page. I'll do that as soon as I can.

CEF removed the procedure to change the cookies location in the CEF 75.0.7 update :
https://www.briskbard.com/forum/viewtopic.php?f=8&t=807

This means that now the cookies are stored in the same directory than the cache and it's not possible to specify a different directory for the cookies.

However, you still can delete the cookies at runtime (see the CookieVisitor demo) or while the app is starting by using the GlobalCEFApp.DeleteCookies property. If you need different cookies for different browsers use a new request context as shown in the MDIBrowser demo.
Post Reply