cookie 存储在系统中的什么位置? [英] Where cookies are stored in system?
问题描述
如果我使用 Response.Cookies["test"].Value ="Hi";
cookie 在系统中存储在哪里?
If i use Response.Cookies["test"].Value ="Hi";
where are cookie stored in system?
我可以检查我的电脑中的 Cookies["test"]
值,因为 cookie 是以文本格式存储的.
Can i check Cookies["test"]
value in my pc because cookies are stored in text format.
我使用的是 VS 2008.操作系统是 Windows 7.
I am using VS 2008. Operating system is Windows 7.
我曾尝试在 Google 中查找,但未得到确切答案.请帮忙解决这个问题.
I have tried to find in Google but not getting the exact answer. Please help to sort out this problem.
推荐答案
IE 和 Windows 在此处保留 cookie:
IE and Windows keeps cookies here:
%AppData%MicrosoftWindowsCookies
指向与@Sohnee's 在 Windows Visa 和更新版本下相同的目录,但他在 Windows XP 和更早版本下没有,我的 - 是.
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.
还有 Temporary Internet Files
可以包含一些 cookie.
also Temporary Internet Files
can contain some cookies.
与此同时,Firefox 将 cookie 保存到配置文件根目录下的 SQLite 数据库中:
Meanwhile Firefox keeps cookies into SQLite database under profile root:
%AppData%MozillaFirefoxProfiles\%FirefoxProfile%cookies.sqlite
要读取数据,您需要使用任何 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'
我刚刚使用试用版 SQLite Maestro 做到了.并且不要忘记在尝试连接之前关闭所有正在运行的 Firefox.
I did it just now using trial SQLite Maestro. And don't forget to close all running Firefoxes before connection attempt.
这篇关于cookie 存储在系统中的什么位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!