Click here to Skip to main content
15,915,076 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how to disable the saved password prompt in login page , ill try lot of methods but nothing is workout.
if anyone know the method plz reply
i have login page with 
username textbox and password passwordbox and submit button using html.

in form autocomplete="off" set
input control autocomplete="off" set
but nothing happened.

after giving the submit it will shows autosave prombt.

i want to close that save prompt through code or if it is save i want to change the wrong password.

thanks in adv 


What I have tried:

i have tried all the ways.
in form autocomplete="off" set
input control autocomplete="off" set
but nothing happened.
Posted
Updated 2-Jul-20 6:03am

For a website, you can't - the autocomplete is outside your app and part of the browser or an extension to the browser. Your server has no way to disable that.

For users, it's a good feature: it persuades them to use a string password that they do not have to remember. Yes, it reduces local security, but that's not really a problem compared to either post-it notes on the monitor, or phishers.
 
Share this answer
 
As OriginalGriff[^] states; this is usually part of the browser and it may seem ironic that improving your site's security is actually a bigger security risk for the end-user.

That said.. there are some tricks that you can attempt; keep in mind that your success may vary as browsers evolve, and what works today may fail tomorrow.

Change the control names. Instead of calling the inputs username and password; change them up a bit.
<input name="CredentialUsr" autocomplete="off" type="text" />
<input name="CredentialKey" autocomplete="off" type="password" />

Another trick I have seen is set the inputs to readonly and to then utilize the onfocus event to remove the readonly attribute
<input name="CredentialUsr" autocomplete="off" onfocus="this.removeAttribute('readonly');" type="text" />

I have also seen this one; where they add in username/password as hidden inputs, hoping that those values are used if the browser does try to save them.
<input name="username" type="hidden" />
<input name="password" type="hidden" />
<input name="CredentialUsr" autocomplete="off" type="text" />
<input name="CredentialKey" autocomplete="off" type="password" />
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900