Search code examples
google-chromecookies

Where does Chrome store cookies?


Let's say I set a cookie using the setcookie() function in PHP:

setcookie('name','foo',false,'/',false);

I can see it in:

chrome://settings/cookies 

However, I can not find the actual file stored on my hard disk. Can anyone tell me where this specific cookie is stored on the hard disk?


Solution

  • The answer is due to the fact that Google Chrome uses an SQLite file to save cookies. It resides under:

    C:\Users\<your_username>\AppData\Local\Google\Chrome\User Data\Default\Network
    

    inside Cookies file. (which is an SQLite database file)

    So it's not a file stored on hard drive but a row in an SQLite database file which can be read by a third party program such as: SQLite Database Browser

    EDIT: Thanks to @Chexpir, it is also good to know that the values are stored encrypted.