记住Chrome浏览器上的密码问题 [英] remember password issue on chrome browser

查看:336
本文介绍了记住Chrome浏览器上的密码问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我有一个网站管理员和一个网站的正常登录。两个登录都有不同的页面。



mysite.com/admin/login.aspx

mysite.com/user/login.aspx。





记住登录页面上用户的密码也会显示在Chrome浏览器的注册页面上。我已经清除了用于注册的ispostback内的用户名和密码的文本框,它可以在其他浏览器上工作,但不能在chrome中工作。



有没有其他方法可以从注册页面中删除用户名和密码,只显示在登录页面上。



这是我在注册页面上的代码



Hi,

i have a site with admin and normal login for one site. both login have different pages.

mysite.com/admin/login.aspx
mysite.com/user/login.aspx.


remember passwords for users on login page also show on the registration page on chrome browser. i have clear the textbox on username and password inside ispostback for registration and it works on other browser but not in chrome.

is there any other way to remove the user name and password from sign up page and only show it on a sign in page.

here is my code on register page

if(!ispostback)
{
txtusername.text = "";
txtpassword.text = "";
}

推荐答案

现代浏览器可以控制它并覆盖代码使用的任何设置。如果用户希望浏览器记住他们选择的密码,则不适合您选择。如果他们不希望浏览器记住他们的密码,那么他们将阻止他们的浏览器这样做。甚至在某些浏览器中也会忽略自动完成属性等内容。让您的客户控制自己的浏览器体验,不用担心。
Modern browsers take control over this and override whatever settings your code uses. If the user wants a browser to remember their password that is their choice, it's not for you to choose for them. If they don't want the browser to remember their password then they'll stop their browser from doing so. Even things like the autocomplete attribute are now ignored in some browsers. Leave your client to control their own browser experience, it's not for you to worry about.


这篇关于记住Chrome浏览器上的密码问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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