(与 Is there a secure Browser Cache? 相关):
HTML5 session 存储的任何实现是否写入磁盘?
例如我可以依赖一个“安全”/“私有(private)”缓存吗?我知道它无法在浏览器 session 之外持续存在,无论是
- 超时
- 结束/注销
- 浏览器关闭/崩溃/计算机上的电源按钮
见
最佳答案
Safari 使用 SQLite,可能其他人也会效仿该解决方案。至于标准,它说:
引用:浏览上下文的生命周期可能与实际用户代理进程本身的生命周期无关,因为用户代理可能支持在重启后恢复 session 。
这意味着它很可能会存储在磁盘上,这意味着如果有人真的想窥探他们可以检查已删除的文件并恢复它,就像您使用恢复软件时所做的那样。
不过,我个人希望他们也支持纯内存临时存储,但目前规范中没有,所以它可能会被排除在外。
Edit: I said "hope" in my last sentence there, but that "hope" goes along with an email I sent to the consortium concerning this issue, so I "hope" they take my suggestion into account. After we all have a say in determining standards, so please make your voice be heard, no one, or team, is perfect and all these standard consortiums are actively looking for feedback.
关于security - HTML5 sessionStorage 可以写入磁盘吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/304284/