Where does Chrome store its cookie file?
Solution 1
You can find a solution on SuperUser :
Chrome cookies folder in Windows 7
C:\Users\your_username\AppData\Local\Google\Chrome\User Data\Default\
You'll need a program like SQLite Database Browser to read it.
Solution 2
We already have Mac OS X and Windows here, so I'll just add Linux for the benefit of web searchers.
You can find the cookies database at
~/.config/google-chrome/Default/
If you can find it there, I'll have you know that the ~/.config/
part comes from where you or your distribution have set the variable $XDG_CONFIG_HOME
to point at.
Freedesktop.org, the standards body for this specification, recommends ~/.config/
to be the default and that's what distros follow.
Solution 3
For anyone who needs this on Mac OS X, the file is located at ~/Library/Application Support/Google/Chrome/Default/Cookies
Solution 4
To access Google Chrome cookies, in order to remove a specific one:
- Click the button (3 horizontal bars, upper right of browser) to customize and control Google Chrome.
- Select 'Settings'
- scroll to bottom and select 'Show Advanced Settings...'
- Under Privacy' click the 'Content Settings' button
- Under 'Cookies' click the 'All cookies and site data...' button
This shows you a list of all site cookies, by site name.
Related videos on Youtube
Lodder
Updated on September 18, 2022Comments
-
Lodder over 1 year
This is my first time using .NET so please excuse my ignorance.
I'm trying to change the value of the
class
atribute in a HTML element, depending on someif/else
statements, like so:@if (item.HasAir) { var icon = "fa fa-plane"; var circleColour = "icon-bg-blue"; } else if (item.HasCar) { var icon = "fa fa-car"; var circleColour = "icon-bg-cyan"; } <span class="icon-cirle @circleColour" aria-hidden="true"> <span class="@icon"></span> </span>
However when refreshing the page in my browser, I'm getting a
Compilation Error
:The name 'circleColour' does not exist in the current context
Looking at the code above, can anyone explain what I'm doing wrong?
Other info:
- .NET Framework version: 4.0.x
- ASP.NET version: 4.7.x
-
Admin almost 12 yearsTry the
c:\Users\<UserName>\AppData\Local\Google\Chrome\User Data\Default\Cookies
file. -
Rob Kennedy almost 12 yearsThis is not a programming question; I've voted to move it to Super User.
-
Admin almost 12 years@TLama Please check my question, I've noted there that I've already tried the cookies file under this path and it is of no use
-
n8wrl over 6 yearsYour icon and circleColor variables are scoped inside the if statements - that is, they are out of scope when you reference them in your HTML.
-
Stephen J. Levine almost 12 yearsI've noted in my question that I've already tried this path before and there is no SQLite DB under it
-
Stephen J. Levine almost 12 yearsApologies, it seems that my confusion was due to using FireFox SQLite extension which didn't open files unless they have SQLite... I've tried use sourceforge.net/projects/sqlitebrowser and it opened the file :) Thanks for your help
-
SAL about 5 yearsNote: If you have multiple Chrome profiles, that last folder ("Default") is your profile name, which can be found by typing "chrome://version" in browser and looking at last part of Profile Path.