IE8在文件系统中存储值存储在localStorage中? [英] Where in the filesystem does IE8 store values stored in localStorage?

查看:197
本文介绍了IE8在文件系统中存储值存储在localStorage中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的组织开始使用这个功能,并且测试它将是理想的,如果我们可以找到和删除这些值,以及看到什么写入磁盘,但我不知道IE8在哪里存储它们。我在

My organization is starting to use this feature and for testing it would be ideal if we could find and delete these values as well as see what's written to disk, but I can't figure out where IE8 is storing them. I found the .sqlite files in

AppData\Local \Apple Computer \Safari for Safari

AppData\Roaming\ Mozilla \Firefox \Profiles\ryb7f27l.default\webappsstore.sqlite for FF3.5

AppData\Local\Apple Computer\Safari for Safari and AppData\Roaming\Mozilla\Firefox\Profiles\ryb7f27l.default\webappsstore.sqlite for FF3.5

任何有关IE8的帮助都将不胜感激!

Any help on IE8 would be appreciated!

推荐答案

文件系统上本地存储的位置很可能是一个实现细节,不能保证从版本到版本始终是相同的即使使用Service Pack更新或更新到IE)。

The location of local storage on the file system is most likely an implementation detail that is not guaranteed to always be the same from version to version (it could even change with a service pack or update to IE).

要使用已批准的方法清除本地存储,请参阅中的/ conf / en-us / library / cc197062.aspx#_clearrel =nofollow noreferrer library / cc197062.aspxrel =nofollow noreferrer> DOM存储器简介MSDN页面

To clear local storage using the approved methods, see Clearing the Storage Areas on the Introduction to DOM Storage MSDN page:


存储区

会话状态在
时立即释放最后一个窗口,以引用该数据
关闭。但是,用户可以随时通过从Internet Explorer中的工具
菜单中选择
删除浏览历史记录来清除
存储区域,
Cookie 复选框,然后点击
确定。这将清除
不在收藏夹文件夹中的所有域的会话和本地
存储区域,并重置
注册表中的存储配额。
清除保留喜好的网站数据
复选框以删除所有存储区域,
,不管来源。

Session state is released as soon as the last window to reference that data is closed. However, users can clear storage areas at any time by selecting Delete Browsing History from the Tools menu in Internet Explorer, selecting the Cookies check box, and clicking OK. This clears session and local storage areas for all domains that are not in the Favorites folder and resets the storage quotas in the registry. Clear the Preserve Favorite Site Data check box to delete all storage areas, regardless of source.

要从
存储列表中删除键/值对,请使用集合rel =nofollow noreferrer> removeItem 或使用
清除以一次删除所有项目。
请记住,对本地
存储区域的更改会异步保存到磁盘

To delete key/value pairs from a storage list, iterate over the collection with removeItem or use clear to remove all items at once. Keep in mind that changes to a local storage area are saved to disk asynchronously.

使用已批准的方法的替代方法是使用进程监视器< a>在您写入 window.localStorage 时查看磁盘和注册表访问。不幸的是,如果你看到它写入像%userprofile%\Cookies\index.dat 的文件,它可能是不明智的删除该文件(因为它包含有关信息所有其他cookie IE知道)。

An alternative to using the approved methods is to use a tool like Process Monitor to watch disk and Registry accesses while you write something to window.localStorage. Unfortunately, if you see it writing to a file like %userprofile%\Cookies\index.dat it would probably be unwise to delete that file (since it contains information about all the other cookies IE knows about).

编辑:使用我自己的建议,我发现本地存储似乎在%userprofile%\本地设置\Application Data\Microsoft\Internet Explorer\DOMStore (在Windows XP,Vista和Windows 7中将略有不同)。它们只是XML文件,但我不确定他们是否安全的删除,因为 index.dat (可能保留有关XML文件的存在的信息或他们内容)。

Using my own suggestion I found that local storage seems to be at %userprofile%\Local Settings\Application Data\Microsoft\Internet Explorer\DOMStore (in Windows XP, Vista and Windows 7 will be slightly different). They are just XML files but I'm not sure how safe they are to delete because of the index.dat (which may retain information about the existence of the XML files or their contents).

这篇关于IE8在文件系统中存储值存储在localStorage中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆