3

I have a web page that uses cookies to track logins. I present a login for it like this:

<FORM ACTION="/authenticate" METHOD="post">
<TABLE BORDER="0" ALIGN="center">
<TR>
  <TD VALIGN="top" ALIGN="right">
    <FONT SIZE="2">Login:&nbsp;</FONT>
  </TD> <TD VALIGN="top" ALIGN="left" >
    <INPUT TYPE="text" NAME="login" SIZE="24" VALUE="" >
  </TD>
</TR>
<TR>
  <TD VALIGN="top" ALIGN="right"><FONT SIZE="2">Password:&nbsp;</FONT></TD>
  <TD ALIGN="left" >
    <INPUT TYPE="password" NAME="password" SIZE="24" VALUE="">
  </TD>
</TR>
</TABLE>   
<P>
<DIV ALIGN="center"><INPUT TYPE="SUBMIT" VALUE="Continue"></DIV>
</FORM>

This works fine and I can use Firefox to save my login password. Within the application I allow person records to be modified including their login and password. Within that form I present something like this:

<TR>
  <TD VALIGN="top" ALIGN="right">
    <FONT SIZE="2">Login<BR>(Optional):&nbsp;</FONT>
  </TD> <TD VALIGN="top" ALIGN="left" >
<INPUT TYPE="text" NAME="person_login" SIZE="8" VALUE="">
  </TD>
</TR>
<TR>
  <TD VALIGN="top" ALIGN="right">
    <FONT SIZE="2">Password:&nbsp;</FONT></TD>
  <TD ALIGN="left" >
    <INPUT TYPE="password" NAME="person_pass" SIZE="8" VALUE="">
  </TD>
</TR>

Even though it uses different names, Firefox displays my own login and stars for the password. However, if the person_login has a value other than blank it seems to do the correct thing. Is this a Firefox thing? Can I do something in HTML to fix this?

13
  • I can't reproduce this on Firefox 12 (updating as we speak). Which version are you using?
    – Dennis
    Jun 19, 2012 at 17:44
  • i'm not that experienced with these things so could be getting the wrong end of the stick here but you seem pretty clear and I think i've got you.. if you are referring to the same problem of autocorrect or autosuggest, the filling in of forms wuth some username/password without any sense. Like, you use a username/password on one site, then the browser stupidly uses it on another site. It just remembers the form info and does it automatically with no sense, that may be what's happening, what you refer to. If so, there is autosuggest=off though it's not standard
    – barlop
    Jun 19, 2012 at 17:49
  • here is a link about autosuggest=off , I don't know if it's relevant to you stackoverflow.com/questions/582244/… But autosuggest=off is a pain too as it means no filling in at all. You want a smart auto filling in feature.
    – barlop
    Jun 19, 2012 at 17:49
  • @barlop: It's autocomplete, and it shouldn't have any impact when saving passwords.
    – Dennis
    Jun 19, 2012 at 17:50
  • @Dennis ah, autosuggest is start..run in xp. Does html autocomplete only affect usernames then? It may not stop them getting saved but it would stop them getting loaded in, and his issue is with them getting loaded in
    – barlop
    Jun 19, 2012 at 17:53

1 Answer 1

1

I believe that I have solved the problem. If I set the autocomplete attribute on the password field in the user edit form it seems to work. Strangely it fixes the login field as well even though I don't change that one. Also, you would think that clearing recent history after logging in would have the same effect but it does not. Telling the browser to forget the password does work though. Something doesn't seem consistent here.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .