Reputation: 14946
If i use Response.Cookies["test"].Value ="Hi";
where are cookie stored in system?
Can i check Cookies["test"]
value in my pc because cookies are stored in text format.
I am using VS 2008. Operating system is Windows 7.
I have tried to find in Google but not getting the exact answer. Please help to sort out this problem.
Upvotes: 31
Views: 56077
Reputation: 476
Cookies are stored in the cookies folder on Windows 7. To open the cookies folder, open run
in Windows and type shell:cookies
. Also, as suggested above, they might be in Temporary internet files. However, I see that your cookies are not persistent. This means you are not setting any expiration on them. Therefore, they won't be stored on your machine and they will only be part of the browser's memory.
Upvotes: 7
Reputation: 14379
For Windows :
C:\Users\Your User Name\AppData\Local\Google\Chrome\User Data\Default.
For Mac:
~Library/Application\ Support/Google/Chrome/Default/Cookies
You can use SQLite Browser for access it .
Upvotes: 1
Reputation: 7181
On Windows 10, I press Win+R
and type shell:Cookies
to open the cookies folder.
it's a hidden folder, the path is
C:\Users\admin\AppData\Local\Microsoft\Windows\INetCookies
Upvotes: 0
Reputation: 11
C:\Users\<user_name>\AppData\Local\Google\Chrome\User Data\Default
Also note, "Local
" is a hidden folder.
Upvotes: 1
Reputation: 100366
IE and Windows keeps cookies here:
%AppData%\Microsoft\Windows\Cookies
Points to the same directory as @Sohnee's does under Windows Visa and newer, but his doesn't under Windows XP and earlier, my - does.
also Temporary Internet Files
can contain some cookies.
Meanwhile Firefox keeps cookies into SQLite database under profile root:
%AppData%\Mozilla\Firefox\Profiles\%FirefoxProfile%\cookies.sqlite
To read the data you need to connect to that database using any SQLite client and execute next query:
select value
from moz_cookies
where name = 'test'
I did it just now using trial SQLite Maestro. And don't forget to close all running Firefoxes before connection attempt.
Upvotes: 15
Reputation: 251282
Your cookies are stored in your user folder:
%userprofile%\AppData\Roaming\Microsoft\Windows\Cookies
You will need to "show" hidden / system files to see them.
Upvotes: 0