Join the Mozilla’s Test Days event from 9–15 Jan to test the new Firefox address bar on Firefox Beta 135 and get a chance to win Mozilla swag vouchers! 🎁

为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Where is the cookies file on mac?

  • 3 个回答
  • 4 人有此问题
  • 3 次查看
  • 最后回复者为 AliceWyman

more options

I'm writing a script with wget and need a cookie that is stored in firefox. I looked in ~/Library/Application Support/Mozilla as well as /Library/Application Support/Mozilla and in the package contents but couldn't find. From what I know it was a txt file in previous versions but now uses a different extension but still uses the name cookies.(extension).

I'm writing a script with wget and need a cookie that is stored in firefox. I looked in ~/Library/Application Support/Mozilla as well as /Library/Application Support/Mozilla and in the package contents but couldn't find. From what I know it was a txt file in previous versions but now uses a different extension but still uses the name cookies.(extension).

所有回复 (3)

more options

~/Library/Application Support/Firefox/Profiles/<profile folder>

You have to go to your Macintosh HD -> users -> "username" folder's /Library/Application Support/Firefox/Profiles folder and then open the profile folder inside, which would be named something like xxxxxxxx.default for the "default" profile. Inside you'll find a bunch of files, including the database file cookies.sqlite where cookies are now stored.

Starting in Firefox 3.6 you can quickly open the current profile in Firefox from the Help menu, by clicking on "Troubleshooting Information" and, under Application Basics, clicking "Show in Finder" (Mac OS).

Ref:

Profiles - Where Firefox stores your bookmarks, passwords and other user data

http://kb.mozillazine.org/Profile_folder_-_Firefox

P.S. This forum topic may also help:

http://forums.mozillazine.org/viewtopic.php?f=38&t=1968701 Resolved:Need Help reading and saving individual cookies

由AliceWyman于修改

more options

You can also use Help > Troubleshooting Information > Profile Directory > Open Containing folder

See Use the Troubleshooting Information page to help fix Firefox issues

more options

Once you find the cookies.sqlite file, here's another forum topic that may help you work with it:

http://www.linuxquestions.org/questions/linux-software-2/using-the-cookies-sqlite-from-firefox-3-in-wget-653227/