Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
436 views
in Technique[技术] by (71.8m points)

asp.net - Where cookies are stored in system?

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.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

IE and Windows keeps cookies here:

%AppData%MicrosoftWindowsCookies

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%MozillaFirefoxProfiles\%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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...