Delphi Chromium Embedded - Create and get a cookie -
i'm using delphi chromium embedded in application. should need save user's account info in cookie. know there's cefcookiemanager it, i'm not able find right procedure store , cookie's value.
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;
Comments
Post a Comment