I am having this same issue after upgrading my app from branch 1650 to 2171. It looks like CEF does not shutdown properly. I've double checked and both CefQuitMessageLoop() and CefShutdown() are being called. But cookies are not flushed to disk when shutting down app. I am setting cache_path option. These are the steps to reproduce:
1. Launch app
2. Create cookie
3. Close app immediately - CefShutdown is called OK.
4. Now when I relaunch app I see these errors in debug.log:
[1125/165558:ERROR:cache_util_win.cc(20)] Unable to move the cache: 5
[1125/165558:ERROR:cache_util.cc(132)] Unable to move cache folder C:\phpdesktop\phpdesktop-chrome-cef2171\Release\webcache
to C:\phpdesktop\phpdesktop-chrome-cef2171\Release\old_webcache_000
[1125/165558:ERROR:cache_creator.cc(132)] Unable to create cache
5. Cookies that were created in previous launch are not found. This issue is reproducible every time.
If after creating cookie I wait 60 seconds before closing app then cookies are flushed to disk just fine.
It worked fine when my app used branch 1650 and I didn't make any code changes, only updated CEF version. It's strange, but when running cefclient.exe with --cache-path switch this issue doesn't occur.
Issue 1432 may be somewhat related: https://code.google.com/p/chromiumembed ... il?id=1432
Tested on Windos 7 64bit. CEF 3 branch 2171 revision 1902.
Building with VS2010.