autocomplete="off" does not work

Asked

Viewed 346 times

0

I own two camps:

<label>Imagem do perfil:</label>
<input><input type="file" value="<?php echo $img; ?>" name="img[]"/><br/>

<label>Senha:</label>
<input type="password" value="<?php echo $senha; ?>"/>

When refreshing the page, the "Profile Image" field is filled with the cached "X" user, and likewise the password. Being that the right one would be, the field "Profile picture" be null and the "Password" filled with the user’s "Y".

Obs.:

1st I am logged in with the user "Y".

2nd This occurs when the variable $img is empty or the value of the null input.

3ª I have other passwords identical to the user’s "Y" stored in cache.

  • field "profile picture"? Wouldn’t be the input value field of the label "Profile picture"?

  • Yes, for the user the field is: "Profile picture", so the double quotes. rs'

  • hehehe, but we are not users, kkk

  • 1

    see this post https://answall.com/questions/61510/como-remover-auto-complete-de-input-do-google-chrome

  • that $password comes from a Session?

  • @Leocaracciolo really the gambiarra worked, but there is some update, given that the "Update 2017" solution does not work?

  • has this gambiarra also autocomplete="new-password" <input type="password" value="<? php echo $password; ? >" autocomplete="new-password" />

  • @Leocaracciolo, the password comes from the comic book, because it is not safe to store critical data in sessions, right? Already about the autocomplete="new-password", didn’t work.

  • 1

    Ta using Chrome? Is the user’s password and img recorded in the Chrome password manager? This manager has problems with password field, he understands that the previous field of the password will always be the login and fill even if it is with autocomplete off. You can place a hidden password type field in the middle of the form that Chrome will lose and will not fill in any field.

  • @Brunofolle, was exactly what I thought. rsrs' Thanks for the comment.

Show 5 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.