Page 1 of 1

Load external cookies from cache

PostPosted: Fri Jul 30, 2021 9:54 am
by smartBeaver
I am currently trying to copy paste cookies from another chromium browser of the same version as JCEF (88.0.4324.150). Then if I restart my JCEF application I find that the new cookies have been loaded into the application, but not before restarting. Is it possible to load cookies from cache on command, like it is done on the startup of the application?

Re: Load external cookies from cache

PostPosted: Fri Jul 30, 2021 1:32 pm
by magreenblatt
You would need to set the cookies using CefCookieManager.

Re: Load external cookies from cache

PostPosted: Fri Jul 30, 2021 2:21 pm
by smartBeaver
I wish there was a way to emulate the initialization of the app or do a quick restart. I tried to create CefCookie objects and add them but it was not enough to provide persistent website authentication for some reason.

Re: Load external cookies from cache

PostPosted: Mon Aug 02, 2021 1:53 pm
by smartBeaver
viewtopic.php?f=17&t=18115&p=49632#p49632

This post has helped me by telling me to set my hasExpire to false.