title: Multiple user profiles / sessions in one CEF instance
body: <p>Is it possible to have multiple user profiles&mdash;with separate cookies, history, local storage, etc.&mdash;running at the same time in one CEF (Chromium Embedded Framework) instance? The goal is to allow multiple browsing "sessions" side-by-side in one window (it's actually an OpenGL app).</p>
  
  <p>There are two possible solutions I've looked into, each with its own problems:</p>
  
  <h3>Using <code>CefCookieManager</code></h3>
  
  <p>This is possible to do for just cookies by <a href="http://www.magpcss.org/ceforum/viewtopic.php?f=6&amp;t=12534" rel="nofollow">creating multiple <code>CefCookieManager</code>s</a>. However, there does not seem to be similar API for history and local storage, which are now still shared.</p>
  
  <h3>Using <code>CefSettings::cache_path</code></h3>
  
  <pre><code>CefSettings settings;
  CefString(&amp;settings.cache_path).FromASCII("C:\\CefCache");
  CefInitialize(args, settings, app, nullptr);
  </code></pre>
  
  <p>The problem here is that <code>CefSettings</code> is associated with the global CEF instance rather than with each browser/client.</p>
  
  <hr>
  
  <p>Is there a way to do this that I have not discovered?</p>