Implementing Incognito browsing

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Implementing Incognito browsing

Postby dimirc » Wed Mar 06, 2013 8:29 am

All browser windows/tabs that I create share cookies, cache,etc. how can I implement an option like Chrome incognito browsing to open new window with isolated cookies, cache, etc?
Thanks
dimirc
Newbie
 
Posts: 4
Joined: Fri Feb 08, 2013 2:42 am

Re: Implementing Incognito browsing

Postby magreenblatt » Wed Mar 06, 2013 11:54 am

One option is to launch a new version of the application with a different cache path. You can also provide different cookie stores via CefRequestHandler::GetCookieManager() or use separate origins (domains or sub-domains) to isolate content.
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm

Re: Implementing Incognito browsing

Postby ZorroHorro » Mon Sep 12, 2016 7:51 am

Can i do the same think, but with cache ?
ZorroHorro
Techie
 
Posts: 13
Joined: Fri Mar 25, 2016 2:33 am

Re: Implementing Incognito browsing

Postby magreenblatt » Mon Sep 12, 2016 9:49 am

ZorroHorro wrote:Can i do the same think, but with cache ?

Incognito mode is enabled when there is no cache. You can create multiple browsers (some incognito, some not) by using CefRequestContext.
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm

Re: Implementing Incognito browsing

Postby ZorroHorro » Mon Sep 12, 2016 2:53 pm

thanks, that helped!
ZorroHorro
Techie
 
Posts: 13
Joined: Fri Mar 25, 2016 2:33 am


Return to Support Forum

Who is online

Users browsing this forum: Majestic-12 [Bot] and 40 guests