跨浏览器技术来禁用密码缓存 [英] Cross-browser techniques for disabling password caching
问题描述
保存和用户名/密码的自动归档是大多数现代浏览器的功能。并且用户可以普遍选择禁用每个域此功能。但有对于网站本身prevent密码缓存的标准方式?
Saving and auto-filing of username/password is a feature of most modern browsers. And the user can generally choose to disable this feature on a per domain basis. But is there a standard way for the site itself to prevent password caching?
这里要强调的是跨浏览器的,所以如果需要的话我会使用多个并联机构。
The emphasis here is cross-browser, so I would employ multiple parallel mechanisms if necessary.
(我已经看到缓存在非标准登录字段,例如,一个额外的隐藏密码字段的presence被有效禁止。但我宁愿不依赖于的副作用的其行为可能会在未来的意外更改。)
(I have seen caching be effectively disabled in the presence of non-standard login fields, eg, an extra hidden password field. But I'd rather not depend on side-effects whose behavior could unexpectedly change in the future.)
相反,还有浏览器/版本在那里,没有实现任何禁用功能密码缓存?
Conversely, are there browsers/versions out there that implement password caching without any disable feature?
推荐答案
自动完成=关闭
添加到您的<输入>
元素。工程在所有现代浏览器,IIRC。
Add autocomplete="off"
to your <input>
elements. Works in all modern browsers, IIRC.
这篇关于跨浏览器技术来禁用密码缓存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!