开发者

Why isn't the browser asking to remember the password? [duplicate]

This question already has answers here: How does browser know when to prompt user to save password? (13 answers) Closed 9 years ago.

What do you need to do on a login form so that the browser prompts to remember the login information? I have a input named "username" and one named "password".

on my browser i have it set to ask if it should remember the password, and it does on most sites, but on the site that i am testing it doesnt, so i am wondering what can be changed to make it remember.

i am also using the type=password for the password field, and it logs in fine and everything, but neither firefox, or safari want to remember it. it is not a huge problem开发者_开发知识库, but it would be nice to figure out

Thanks

here is the form:

<form id="login" method="post" action="/login.php">
<div class="cell">

<div class="left">Username: </div>
<div class="right">
<input type="text" id="username" name="username"> 
</div>

<div class="left">Password: </div>
<div class="right">
<input type="password" id="password" name="password">


Make sure your input is type="password". If its type is text, it won't work.


Usualy nothing... Browser take care of that. There is a attribute in HTML to tell browser NOT to remember

autocomplete=off


Firefox (I don't use the others, but I assume it mostly applies) will remember what you enter in any field of any form. Passwords are special probably because the field is marked as type="password" so Firefox will (by default) ask if you want to remember the credentials. If you select "Never ask again" it will never ask again, which might be what you're seeing. It stores this information per page and there's a setting somewhere which allows you to reset this, of course.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜