Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Manage cookies

538 views
Skip to first unread message

Whiler

unread,
Sep 1, 2011, 4:28:35 AM9/1/11
to delphichromiumembedded
Hi,

I'm currently testing TChromium for the first time. I'm usually using
a TWebBrowser.

This is a very good job and simple to manage.

But I have an issue I don't usually have... Between 2 runs, the
cookies (not session one) are lost...

I have seen that since r231, we can manage them.

Is there a simple way to persist them between 2 application runs?

Cheers,

W.

Henri Gourvest

unread,
Sep 1, 2011, 4:39:21 AM9/1/11
to delphichrom...@googlegroups.com
wellcome :)

you can specify a cache directory:

===
uses ceflib;

initialization
  CefCache := 'cache';
end.
===


2011/9/1 Whiler <and...@whiler.com>



--
Henri Gourvest

Henri Gourvest

unread,
Sep 1, 2011, 5:01:39 AM9/1/11
to delphichrom...@googlegroups.com
another way is to save the cookies when your application close using "CefVisitAllCookies"
and reload them when your application start using "CefSetCookie"
be careful, CefSetCookie must be run in the CEF IO thread, cf "CefPostTask"

2011/9/1 Whiler <and...@whiler.com>



--
Henri Gourvest

Whiler

unread,
Sep 1, 2011, 5:28:40 AM9/1/11
to delphichromiumembedded
Hi,

Thanks! I successfully manage it with the CefCache folder.

Cheers,

W.

On Sep 1, 10:39 am, Henri Gourvest <hgourv...@gmail.com> wrote:
> wellcome :)
>
> you can specify a cache directory:
>
> ===
> uses ceflib;
>
> initialization
>   CefCache := 'cache';
> end.
> ===
>
> 2011/9/1 Whiler <andr...@whiler.com>
Message has been deleted

Vinicius Oliveira

unread,
May 30, 2014, 10:47:12 AM5/30/14
to delphichrom...@googlegroups.com
The subject is old...  But I can not use your code... my unit is:

unit Vinicius;
interface
uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, cefvcl;
type
  TForm1 = class(TForm)
    Chromium1: TChromium;
  private
    { Private declarations }
  public
    { Public declarations }
  end;
var
  Form1: TForm1;
implementation
{$R *.dfm}
end.


You can help?

Vinicius Oliveira

unread,
Jun 2, 2014, 8:04:57 AM6/2/14
to delphichrom...@googlegroups.com
My doubt was about the structure of .pas .. like this:

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, cefvcl, ceflib;

and

implementation
initialization
  CefCache := 'cache';

[]'s

Marcos Doni

unread,
Jun 14, 2014, 6:10:01 PM6/14/14
to delphichrom...@googlegroups.com
Sugiro que você estude um pouco sobre a estrutura de uma unit. Acredito que este grupo destina-se a esclarecer dúvidas relativas ao componente Dcef3
Reply all
Reply to author
Forward
0 new messages