Open FeldrinH opened 2 months ago
Thanks for report! What if you try it with admin rights? (open cmd as admin and then use rookiepy) It should then extract it in better way
What if you try it with admin rights? (open cmd as admin and then use rookiepy) It should then extract it in better way
That does improve things. With admin rights it does not revert cookies to the previous value in Chrome, but rookiepy.chrome()
still returns the old value for recently set cookies (experimentally, it takes about 30 seconds from setting a cookie to having rookiepy.chrome()
return the new value).
If you wait about 30 seconds without admin rights then rookiepy.chrome()
also returns the new value and does not revert. Presumably this means that Chrome waits about 30 seconds before flushing changes to the cookie database to disk.
EDIT: Found confirmation of this in Chromium source code: https://github.com/chromium/chromium/blob/main/net/extras/sqlite/sqlite_persistent_cookie_store.cc#L332-L335. Apparently the 30 second delay to flush has been in Chrome for a long time (12+ years).
What happened?
If you set a cookie in Chrome and then read cookies using rookie then the recently set cookie is not found by rookie. Reloading the page in Chrome, the cookie has reverted to its previous value (or disappeared if it was previously not set).
Steps to reproduce
rookiepy.chrome()
.Tested on Windows 10 with Chrome 128.0.6613.114 and rookiepy 0.5.2.
What browsers are you seeing the problem on?
Chrome
Relevant log output
No response