Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.

Chromium don't save cookies and sessions.

Post Reply
User avatar
salvadordf
Posts: 4057
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Chromium don't save cookies and sessions.

Post by salvadordf »

Something similar happened when CEF4Delphi started to use "LoadLibraryEx" to load the DLL. Some users executed their app with shellexecute and then you had problems loading the DLLs in different directories.

Since then GlobalCEFApp has a "SetCurrentDir" property to fix that problem. Perhaps setting GlobalCEFApp.SetCurrentDir to TRUE will fix your problem.

Check that the cache and cookies directories are writable or "read-only".
User avatar
salvadordf
Posts: 4057
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Chromium don't save cookies and sessions.

Post by salvadordf »

Please download CEF4Delphi again and try setting this properties :

Code: Select all

  GlobalCEFApp.cache            := 'cache';
  GlobalCEFApp.cookies          := 'cookie';
  GlobalCEFApp.UserDataPath     := 'userData';
  GlobalCEFApp.FrameworkDirPath := 'cef';
  GlobalCEFApp.ResourcesDirPath := 'cef';
  GlobalCEFApp.LocalesDirPath   := 'cef\locales';
  GlobalCEFApp.SetCurrentDir    := True;
The latest update converts the relative paths in GlobalCEFApp properties to absolute paths automatically.

I tested this configuration with MiniBrowser and I run it from a different directory using CMD.
The test was successful and MiniBrowser used the cookies available when I run it with CMD.
Post Reply