Skip to content

Cookies not flushed to disk when closing app immediately. Expose CookieManager.FlushStore method. #365

Description

@cztomczak

Reported to occur on Windows 10 in examples: wxpython.py, qt.py and hello_world.py. This issue occurs when using ApplicationSettings.cache_path option. Cookies are not flushed when closing app immediately. Cookies are flushd to disk every 30 sec or so.

Reported issue on upstream CEF Forum:
https://magpcss.org/ceforum/viewtopic.php?f=6&t=16169

Original report on the CEF Python Forum:
https://groups.google.com/d/topic/cefpython/a7Mt-GqJEms/discussion

A similar issue was fixed in the v31 branch via Issue #158.

Issue occurs on Windows.
In v57 it worked fine on Linux, but in v66 the issue occurs also on Linux.

Activity

  1. changed the title [-]Cookies not flushed to disk in the wxpython.py example on Windows[/-] [+]Cookies not flushed to disk on Windows[/+] on Jun 1, 2017
  2. changed the title [-]Cookies not flushed to disk on Windows[/-] [+]Cookies not flushed to disk when closing app immediately on Windows[/+] on Feb 17, 2018
  3. added this to the v66 milestone on May 22, 2018
  4. cztomczak commented on Aug 2, 2018

    @cztomczak
    OwnerAuthor

    I can reproduce the issue on Windows 7 with the http://www.html-kit.com/tools/cookietester/ url. I've modified hello_world.py example and set cache_path option. If I set a cookie and close app within 30 seconds then the cookie is not persisted. If I wait 30 secs then I can see the cookie appear after relaunch.

    Also reproducible with the wxpython.py example.
    Also reproducible on Linux with the hello_world.py example.
    Issue not reproducible in cefclient sample app.

  5. changed the title [-]Cookies not flushed to disk when closing app immediately on Windows[/-] [+]Cookies not flushed to disk when closing app immediately[/+] on Aug 2, 2018
  6. changed the title [-]Cookies not flushed to disk when closing app immediately[/-] [+]Cookies not flushed to disk when closing app immediately. Expose CookieManager.FlushStore method.[/+] on Aug 2, 2018
  7. cztomczak commented on Aug 2, 2018

    @cztomczak
    OwnerAuthor

    Fixed in rev c78619a.

    If implementing custom cookie managers you have to call FlushStore explicitilly when closing associated browser.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions