qzmpal / dcef3

Automatically exported from code.google.com/p/dcef3
0 stars 0 forks source link

Where is cookie? #13

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Where is cookie in this custom browser?

The demos project created a "cache" folder, but it didn't appear in my project 
when I used TChromium.

Original issue reported on code.google.com by skywilln...@gmail.com on 18 Apr 2013 at 5:56

GoogleCodeExporter commented 9 years ago
Looks like need to use "CookieManager"...

procedure TChrome_Browser.EventFormCreate(Sender: TObject);
var
  CookieManager: ICefCookieManager;
begin
  if DirectoryExists('Cookies') = False then
    MkDir('Cookies');

  CookieManager := TCefCookieManagerRef.GetGlobalManager;
  CookieManager.SetStoragePath('Cookies');
end;

then the cookie will appear in my project/ Cookies folder

Original comment by skywilln...@gmail.com on 18 Apr 2013 at 6:10