php – How do I change my browser autocomplete password?

Question:

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?

Answer:

To disable autocomplete, there is an autocomplete="off" attribute (see https://msdn.microsoft.com/en-us/library/ms533486(VS.85).aspx )

However, many browsers do not support it for the password type (see https://stackoverflow.com/questions/3868299/is-autocomplete-off-compatible-with-all-modern-browsers/21348793#21348793 ). Try setting this attribute for the login.

Scroll to Top