Where cookies are stored in system?

后端 未结 6 950
一生所求
一生所求 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:36

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

    Also note, "Local" is a hidden folder.

    0 讨论(0)
  • 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.

    0 讨论(0)
  • 2020-12-08 14:38

    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 讨论(0)
  • 2020-12-08 14:42

    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.

    For details: http://sanganakauthority.blogspot.in/2014/02/aspnet-cookies-in-windows-7.html

    0 讨论(0)
  • 2020-12-08 15:01

    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.

    0 讨论(0)
  • 2020-12-08 15:02

    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 .

    0 讨论(0)
提交回复
热议问题