Join us and the lead editor of IRL, Mozilla's multi-award-winning podcast, for a behind-the-scenes look at the pod and to contribute your ideas for the next season, themed: "AI and ME." Mark your calendar and join our Community Call on Wednesday, Aug 7, 17:00–17:45 UTC. See you there!

Etsi tuesta

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Lue lisää

Firefox fills in login information on every form on a page

  • 2 vastausta
  • 2 henkilöllä on sama ongelma
  • 11 näyttöä
  • Viimeisin kirjoittaja semmelbroesel

more options

I'm a web programmer. In one of my projects, I have a username/password login screen, and Firefox remembers my login just fine.

However, I have a special access page within the project that asks for a different username and password. These fields have very different names and ids, but Firefox still inserts the same login information, and I don't want it to do that.

Is there away for me to prevent that from happening?

Both fields have "autocomplete=off" on them.

I am running the newest version of Firefox on Windows 7 64bit.

Thanks!

I'm a web programmer. In one of my projects, I have a username/password login screen, and Firefox remembers my login just fine. However, I have a special access page within the project that asks for a different username and password. These fields have very different names and ids, but Firefox still inserts the same login information, and I don't want it to do that. Is there away for me to prevent that from happening? Both fields have "autocomplete=off" on them. I am running the newest version of Firefox on Windows 7 64bit. Thanks!

Kaikki vastaukset (2)

more options

Enter the second login data, then press the login button. The Password Manager will ask you want to replace the current information. Answer No. Both the old and new information should now be in the PW. When you go to login again, the user/password will not be filled in automatically. Just start entering a few characters in the user field, and a small window will come up with the full user name(s). Pick the one you want to use.

more options

Thanks, but in this case that won't work - to avoid exactly this situation of having the browser remember the login, the two login text fields aren't connected to a form - instead, javascript copies the content of the two fields into the actual (hidden) form and submits there.

As far as I know, Firefox has only started doing this very recently.

I tried catching the text entry from Firefox with jquery, but it happens AFTER the page has completed loading - I might have to try a timeout to empty the fields.