html5 – 如何使用localstorage禁用浏览?

我正在建设的网站使用localstorage回退到PHP会话。

如何在不降级Firefox,Internet Explorer 8,Chrome或Safari的情况下在本地存储免费环境中测试我的网站?所以我可能正在寻找一个附加的这些浏览器之一?

我试过ie7模式在ie8 – 没有快乐:(

解决方法

对于Firefox:

07000

The Web Applications 1.0 specification defines a mechanism allowing web pages to store information with a web browser (similar to cookies) called “client-side session and persistent storage.” Although use of session storage is subject to a user’s cookie preferences,this preference allows it to be disabled entirely.

适用于Chrome:

07001

While some resources on the Internet claims that Chrome’s cookie blocking does not also block LocalStorage,I just ran a quick test and discovered that it does actually block LocalStorage,(at least in Chrome 12,the current beta version).

不太确定IE和我想象的Safari是类似于Chrome。

相关文章

HTML5和CSS3实现3D展示商品信息的代码
利用HTML5中的Canvas绘制笑脸的代码
Html5剪切板功能的实现
如何通过HTML5触摸事件实现移动端简易进度条
Html5移动端获奖无缝滚动动画实现
关于HTML5和CSS3实现机器猫的代码