Saved username and password
Moderator: General Moderators
- shiznatix
- DevNet Master
- Posts: 2745
- Joined: Tue Dec 28, 2004 5:57 pm
- Location: Tallinn, Estonia
- Contact:
Saved username and password
Ok on my website I have of course a registration part. Since I have logged in and saved my password on this site many times I find that when I go to the registration page the username and password fields are already filled in. This is annoying because I am trying to test out the registration system and don't want that filled in with legit info while I am testing it. I tried changing the field names to just whatever crazy stuff but for some reason it sees anything that has field type "text" then next as field type "password" to always be the username and password that you saved for the site. Can I turn this off or trick it into not doing that for certain fields?
Re: Saved username and password
by "it", you mean your browser? Its a browser specific setting, just clear saved passwords.
- shiznatix
- DevNet Master
- Posts: 2745
- Joined: Tue Dec 28, 2004 5:57 pm
- Location: Tallinn, Estonia
- Contact:
Re: Saved username and password
But I don't want to clear saved passwords, I just don't want the browser to think that this is a login form, because it isn't, its a registration form and I don't want it just throwing my username and password in there every time. So can I just trick the browser into not putting anything there?
-
malcolmboston
- DevNet Resident
- Posts: 1826
- Joined: Tue Nov 18, 2003 1:09 pm
- Location: Middlesbrough, UK
Re: Saved username and password
theres also a not very well documented HTML attribute for this.
in the INPUT field use autocomplete="off" i believe this also works in the <form> tag
in the INPUT field use autocomplete="off" i believe this also works in the <form> tag
Re: Saved username and password
If you're using Firefox, you can go into your saved password list & remove your site. You'll then get a little bar appear the next time you try to login asking if you want to save the password. Choose "Never for this site" & you should be good to go.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
- shiznatix
- DevNet Master
- Posts: 2745
- Joined: Tue Dec 28, 2004 5:57 pm
- Location: Tallinn, Estonia
- Contact:
Re: Saved username and password
wow thanks that is exactly what I wanted, never heard of that one before.malcolmboston wrote:theres also a not very well documented HTML attribute for this.
in the INPUT field use autocomplete="off" i believe this also works in the <form> tag
Re: Saved username and password
IE and Mozilla browser has an option to enable and disable in saving password in field box.
have you tried it what malcolmboston shared I haven't heard it yet may I could also try. Did it work?malcolmboston wrote:theres also a not very well documented HTML attribute for this.
in the INPUT field use autocomplete="off" i believe this also works in the <form> tag
- shiznatix
- DevNet Master
- Posts: 2745
- Joined: Tue Dec 28, 2004 5:57 pm
- Location: Tallinn, Estonia
- Contact:
Re: Saved username and password
as stated in my last post, the attribute autocomplete="off" works for exactly what I wanted to happen there. So yes, it does work
Re: Saved username and password
Oh thanks I have applied. Thanks! 
Re: Saved username and password
If you want to test it you need to clear cookies every time you exit the browser, this is the fastest and easiest I tihnk.