browser saves login information in registration form

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
gth759k
Forum Commoner
Posts: 76
Joined: Mon Jun 15, 2009 3:04 am

browser saves login information in registration form

Post by gth759k »

I have a login form and a registration form, both have a username and password inputs fields. Everything has a different name e.g. loginemail, loginpassword, registeremail, registerpassword but if I save my username and password in the browser when I log out, I can see the username and password information in both the login and register forms. I've tried changing the names so that they are completely random, but that didn't work. Does anyone know how to prevent this?
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: browser saves login information in registration form

Post by jackpf »

You could try autocomplete="off".

Although why is it a bad thing?
User avatar
omniuni
Forum Regular
Posts: 738
Joined: Tue Jul 15, 2008 10:50 pm
Location: Carolina, USA

Re: browser saves login information in registration form

Post by omniuni »

Have you made sure that your password field is set to <input type="password" name="blah"></input> ?
Post Reply