google-chrome

Unable to Open Cookie File


My application using sqlite.connect is trying to connect Cookies file present in \AppData\Local\Google\Chrome\User Data\Default\Network and we were able to read cookies but suddenly issue started coming that its unable to open the Cookie file. \

During my investigation I found that, when Chrome is open I'm unable to open the file manually as well. Only when the chrome is closed I can open the file. This is causing lot of issues.

I believe the cookie file is being locked by chrome and not allowing anyone to read the file.

Can someone please help me?


Solution

  • This is due to a recent Chrome update, Version 114.0.5735.110.

    Launch Chrome from command line with:

    chrome.exe --disable-features=LockProfileCookieDatabase
    

    To help protect Chrome users against malware attempting to steal cookie information, Chrome 114 on Windows holds an exclusive lock on the profile cookie files on disk. To ensure this behavior does not interfere with any sanctioned software on your system, you can run Chrome with the --enable-features=LockProfileCookieDatabase command-line flag.