Delphi Chromium Embedded - creating and receiving cookie
1 answer
Uses
ceflib;
const
DefaultCookiesDir = 'Cookies/';
implementation
{$R *.dfm}
procedure TForm1.Button2Click(Sender: TObject);
var
CookieManager: ICefCookieManager;
CookiesPath : String;
begin
CookiesPath := ExtractFilePath(Application.ExeName) + DefaultCookiesDir + 'User1';
CookieManager := TCefCookieManagerRef.GetGlobalManager;
CookieManager.SetStoragePath(CookiesPath);
Chromium1.Load('www.vk.com');
end;
0
source to share