Delphi Chromium Embedded - creating and receiving cookie
I am using Delphi Chromium Embedded in my application. I need to store user account information in a cookie. I know CefCookieManager does this, but I cannot find the correct procedure to store and retrieve the cookie value.
0
henry60
source
to share
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
Yuri
source
to share