iT邦幫忙

0

請問 Firefox 瀏覽網頁時, cookies都存放在那裏.

IE瀏覽網頁時,其COOKIE都存放在Temporary Internet Files目錄下,但Firefox 我一直都找不到它存放的位置, 以便手動刪除cookies.

圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中
30
cooch
iT邦研究生 3 級 ‧ 2009-07-07 20:21:07
最佳解答

1 Firefox 3.5 在 Windows XP 的 cookie 放置位置:
C:\Documents and Settings\[帳號]\Application Data\Mozilla\Firefox\Profiles\dj9bvodl.default\
( dj9bvodl.default 這個目錄名稱好像每台電腦都不一樣!)

2 其實不需手動清,用 CCleaner 也可以清得很乾淨,

3 如果您跟我一樣有潔癖,CCleaner 清了還覺得不夠(註一),有一個 Script 可以清光電腦內所有帳號的 IE , Firefox ,Chrome 的暫存資料和 Cookie :
(適用 Windows XP ,Windows Server 2003 )

<pre class="c" name="code">Set profileroot=c:\documents and settings

FOR /F "tokens=*" %%I IN ('DIR /B /AD "%profileroot%"') DO (
del /s /s /q "%profileroot%\%%I\Cookies\*"
del /s /s /q "%profileroot%\%%I\Local Settings\Temporary Internet Files\*"
del /s /s /q "%profileroot%\%%I\Local Settings\Temp\*"
del /f /s /q "%profileroot%\%%I\Application Data\Mozilla\Firefox\Profiles\*"
del /f /s /q "%profileroot%\%%I\Local Settings\Application Data\Mozilla\Firefox\Profiles\*"
del /f /s /q "%profileroot%\%%I\Local Settings\Application Data\Google\Chrome\User Data\Default\Cache\*"
del /f /q "%profileroot%\%%I\Local Settings\Application Data\Google\Chrome\User Data\Default\*"
)

Set profileroot=d:\documents and settings

FOR /F "tokens=*" %%I IN ('DIR /B /AD "%profileroot%"') DO (
del /s /s /q "%profileroot%\%%I\Cookies\*"
del /s /s /q "%profileroot%\%%I\Local Settings\Temporary Internet Files\*"
del /s /s /q "%profileroot%\%%I\Local Settings\Temp\*"
del /f /s /q "%profileroot%\%%I\Application Data\Mozilla\Firefox\Profiles\*"
del /f /s /q "%profileroot%\%%I\Local Settings\Application Data\Mozilla\Firefox\Profiles\*"
del /f /s /q "%profileroot%\%%I\Local Settings\Application Data\Google\Chrome\User Data\Default\Cache\*"
del /f /q "%profileroot%\%%I\Local Settings\Application Data\Google\Chrome\User Data\Default\*"
)

註一:CCleaner 清除暫存檔案資料是清除目前登入電腦的該使用者所屬的部分,並不會清除其他使用者所屬的暫存檔案!
註二:執行此一程式時最好以系統管理員身分執行,
才能清光其他帳號的暫存檔案!!

46
fillano
iT邦超人 1 級 ‧ 2009-07-07 09:43:10

第一種方法:
工具->選項->個人隱私->顯示Cookie
(上面的順序是Firefox 3.5,其他版本字可能會稍稍不同)

然後就可以依照Domain Name一筆一筆刪。

第二種方法:
找一下,"C:\Users\帳號\AppData\Roaming\Mozilla\Firefox\Profiles\x5s8c7ah.default\cookies.sqlite" 檔案,Cookie應該存在裡面,不過你需要用sqlite透過sql下命令才能做查詢、修改及刪除,有點麻煩,所以還是用第一種方法比較好(我沒做過。另外,每個系統的....\Profiles\xxxxxxxx.default目錄都會不同,所以要自己找找看。)

24
jwoo
iT邦新手 4 級 ‧ 2009-07-07 15:51:48

第二種方法,在windows vista的位置亦是:
C:\Users\[帳號]\AppData\Roaming\Mozilla\Firefox\Profiles\xcc1950d.default\cookie.sqlite

我要發表回答

立即登入回答