Page 1 of 1

How to keep web-sites authorisation after application restart

Posted: Thu Jul 18, 2019 12:11 pm
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!

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

Posted: Thu Jul 18, 2019 12:23 pm
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.

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

Posted: Thu Jul 18, 2019 5:07 pm
by ForestListener
Respect!

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

Posted: Thu Jul 18, 2019 6:02 pm
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?

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

Posted: Thu Jul 18, 2019 6:09 pm
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.

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

Posted: Thu Jul 18, 2019 6:18 pm
by ForestListener
Got it.

Thank you a lot!