开发者

Where cookies are stored in system?

If i use Response.Cookies["test"].Value ="Hi"; w开发者_如何学运维here 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.


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.


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.


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

Also note, "Local" is a hidden folder.


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 .

Where cookies are stored in system?


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.


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜