Google Chrome Cookie Storage

前端 未结 4 1683
南笙
南笙 2020-12-14 08:25

Where does the latest Google Chrome for Mac save cookies, specifically those that expire with the session?

相关标签:
4条回答
  • 2020-12-14 08:58

    Even though this was posted 6 years ago, maybe this could still be helpful: did you mean to ask where can you find the cookies and localstorage and resources on chrome's devTools on mac os? It's under "application" tab.

    0 讨论(0)
  • 2020-12-14 09:02

    The file is a SQL database you can see and change the contents with SQLite Database Browser witch can be easily found for download in the internet.

    0 讨论(0)
  • 2020-12-14 09:11

    The cookies are in a sqlite3 database named ~/Library/Application Support/Google/Chrome/Default/Cookies. The session cookies are not stored on the disk.

    0 讨论(0)
  • 2020-12-14 09:14

    Josh Lee's answer is correct, however, if you're having trouble finding the cookies in Finder, it's probably because they're located within the hidden 'Library' folder in your user's home directory.

    The easiest way to get there is just open Finder, open the 'Go' menu up top, and press 'Go to Folder'. Then just paste in the path and hit go;

    ~/Library/Application Support/Google/Chrome/Default/Cookies
    

    If you want to be able to view hidden files and folders in OS X you should run the following command in the Terminal;

    defaults write com.apple.finder AppleShowAllFiles YES
    

    Once you've done that, hold the Alt key (option key) and right-click on the finder icon in your Dock, and click Relaunch. Now when you open a finder window you can see hidden files and folders.

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