Where cookies are stored in system?

后端 未结 6 1115
一生所求
一生所求 2020-12-08 14:15

If i use Response.Cookies[\"test\"].Value =\"Hi\"; where are cookie stored in system?

Can i check Cookies[\"test\"] value in my pc because

6条回答
  •  佛祖请我去吃肉
    2020-12-08 14:38

    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.

提交回复
热议问题