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.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.

How to keep web-sites authorisation after application restart

Post Reply
ForestListener
Posts: 44
Joined: Sun Jul 07, 2019 1:46 pm

How to keep web-sites authorisation after application restart

Post by ForestListener »

Hello.

If i restart the application, authorisation on a website resets. How to keep it?

I saw similar topic, but i still cant make it.

Thank you!
User avatar
salvadordf
Posts: 4565
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: How to keep web-sites authorisation after application restart

Post by salvadordf »

The cookies are now stored in the same directory as the rest of the cache files.

Set the GlobalCEFApp.cache property to a writable directory before the GlobalCEFApp.StartMainProcess call in the DPR file.
ForestListener
Posts: 44
Joined: Sun Jul 07, 2019 1:46 pm

Re: How to keep web-sites authorisation after application restart

Post by ForestListener »

Respect!
ForestListener
Posts: 44
Joined: Sun Jul 07, 2019 1:46 pm

Re: How to keep web-sites authorisation after application restart

Post by ForestListener »

I hope, that is the last question.

I run Chromium application from multi threaded procedure of another application.

All running copies of Chromium application has the same cache folder and can run/close at the same time. And, i think, there is a problem. I've got Chrome application not responding with multi-threaded usage way.

Is it possible to run Chromium application (with the same cache folder) from multi-threaded procedure of another application?
User avatar
salvadordf
Posts: 4565
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: How to keep web-sites authorisation after application restart

Post by salvadordf »

It's not possible to run several copies of the same application if all of them use the same cache directory.

If you need several browsers sharing the same cache then create one application that creates multiple browsers, like the TabbedBrowser, ToolBoxBrowser or MDIBrowser demos.
ForestListener
Posts: 44
Joined: Sun Jul 07, 2019 1:46 pm

Re: How to keep web-sites authorisation after application restart

Post by ForestListener »

Got it.

Thank you a lot!
Post Reply