Disable autofill

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
unclep
Forum Newbie
Posts: 3
Joined: Wed Apr 24, 2002 6:53 am

Disable autofill

Post by unclep »

I have a login area on my site, build with PHP/Mysql

How can I avoid Windows from filling out the password when someone used the function to remember the password.

Because when a user chooses to remember the password on a computer which is shared with other people Windows fills out the password. And I don't want Windows to do so.

Hope someone knows an answer to this.

Kind regards,

UncleP
User avatar
enygma
Site Admin
Posts: 175
Joined: Fri Apr 19, 2002 8:29 am
Location: Dallas, Tx

Post by enygma »

That would be client-side (PHP is server-side) and I'm not sure it can be disabled. You'd have to look into some Javascript for the browser you're working with to see if they have anything that might remove that....
I don't think you can though.
-enygma
User avatar
mydimension
Moderator
Posts: 531
Joined: Tue Apr 23, 2002 6:00 pm
Location: Lowell, MA USA
Contact:

Post by mydimension »

i would go so far as to say that you can't do it with PHP and im 99.9% sure you can't do it with JavaScript/VBScript/etc. that kind of thing is set per browser and per user. about the only thing you can do is make a note somewhere telling the user to (temporarily) disable that feature.
jason
Site Admin
Posts: 1767
Joined: Thu Apr 18, 2002 3:14 pm
Location: Montreal, CA
Contact:

Post by jason »

Actually, what you are experiencing is a Browser Feature. This is something you really can't fix.

However! From what I can tell, IE, and most other browsers, won't "Remember" passwords, and any fields on https sites.
So if you setup the login on a https server, that should solve your problem.

The other way is a reminder type thing, where you remind the person not to save the password.

Finally, I don't know if it works, but it might. On the login page, make the URL random.

Something like "http://www.example.com/loging.php?023480283048023"

So that whenever they go to the page, the browser won't remember it's the same page.

However, that is just in theory.
Post Reply