I'm using CEF 4. There are two instances of chromium on the form, they both use the same settings:
procedure CreateGlobalCEFApp;
var
inicef: Tinifile;
begin
GlobalCEFApp := TCefApplication.Create;
GlobalCEFApp.LogFile := 'debug.log';
GlobalCEFApp.LogSeverity := LOGSEVERITY_INFO;
GlobalCEFApp.cache := 'cache';
GlobalCEFApp.EnablePrintPreview := True;
path := ExtractFilePath(ParamStr(0));
GlobalCEFApp.DisableFeatures := 'WinUseBrowserSpellChecker';
inicef := Tinifile.Create(path + '\settings.ini');
GlobalCEFApp.UserAgent := Pchar(inicef.ReadString('Chrome', 'UserAgent', ''));
inicef.free;
end;
How can I make each instance use a different path for cookies? I need to log in with two accounts to the same site.