Load external cookies from cache

Having problems with building or using the JCEF Java binding? Ask your questions here.

Load external cookies from cache

Postby smartBeaver » Fri Jul 30, 2021 9:54 am

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?
smartBeaver
Techie
 
Posts: 10
Joined: Wed May 26, 2021 7:51 am

Re: Load external cookies from cache

Postby magreenblatt » Fri Jul 30, 2021 1:32 pm

You would need to set the cookies using CefCookieManager.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: Load external cookies from cache

Postby smartBeaver » Fri Jul 30, 2021 2:21 pm

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.
smartBeaver
Techie
 
Posts: 10
Joined: Wed May 26, 2021 7:51 am

Re: Load external cookies from cache

Postby smartBeaver » Mon Aug 02, 2021 1:53 pm

viewtopic.php?f=17&t=18115&p=49632#p49632

This post has helped me by telling me to set my hasExpire to false.
smartBeaver
Techie
 
Posts: 10
Joined: Wed May 26, 2021 7:51 am


Return to JCEF Forum

Who is online

Users browsing this forum: No registered users and 17 guests