新聞中心

- 一種是將 Cookie 數(shù)據(jù)保存在文件中;
- 另一種是保存在瀏覽器內(nèi)存中。
本節(jié)以 windows 7 系統(tǒng)上的常用瀏覽器為例來說明 Cookie 的存儲位置。
IE 瀏覽器
Windows 系統(tǒng)上 IE 瀏覽器 Cookie 數(shù)據(jù)位于 %APPDATA%\Microsoft\Windows\Cookies\ 目錄中的 xxx.txt 文件,里面可能有很多個. txt Cookie 文件,如 C:\Users\yren9\AppData\Roaming\Microsoft\Windows\Cookies\0WQ6YROK.txt。
在 IE 瀏覽器中,IE 將各個站點(diǎn)的 Cookie 分別保存為一個 XXX.txt 這樣的純文本文件;
Firefox 和 Chrome 瀏覽器
Firefox 和 Chrome 是將所有的 Cookie 都保存在一個文件中,該文件的格式為 SQLite 數(shù)據(jù)庫格式的文件。
Firefox 的 Cookie 數(shù)據(jù)位于 %APPDATA%\Mozilla\Firefox\Profiles\ 目錄中的 xxx.default 目錄下,名為 Cookies.sqlite 的文件中,如 C:\Users\jay\AppData\Roaming\Mozilla\Firefox\Profiles\ji4grfex.default\cookies.sqlite。
在 Firefox 中查看 Cookie,可以選擇“工具>選項(xiàng)>隱私>顯示 Cookie”。
Chrome 的 Cookie 數(shù)據(jù)位于 %LOCALAPPDATA%\Google\Chrome\User Data\Default\ 目錄中名為 Cookies 的文件中,如 C:\Users\jay\AppData\Local\Google\Chrome\User Data\Default\Cookies。
網(wǎng)頁名稱:Cookie在瀏覽器中是如何存儲的?
分享地址:http://fisionsoft.com.cn/article/djcpdie.html


咨詢
建站咨詢
