php – How do I change my browser autocomplete password?


The user has changed his password on the site. When you leave the site and then try to enter it, the form is automatically filled with his email and password, which will no longer match the correct one, which can mislead him. How can I change autocomplete data (not via settings) using php or javascript?


To disable autocomplete, there is an autocomplete="off" attribute (see )

However, many browsers do not support it for the password type (see ). Try setting this attribute for the login.

Scroll to Top