Page 1 of 1

Disable autofill

Posted: Wed Apr 24, 2002 6:53 am
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

Posted: Wed Apr 24, 2002 8:29 am
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

Posted: Wed Apr 24, 2002 10:16 am
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.

Posted: Wed Apr 24, 2002 10:59 am
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.