Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to prevent Google Chrome from saving passwords in ASP.NET MVC?

Is there a way to prevent Google Chrome and other browsers from saving a password for a specific site? The server is ASP.NET MVC .NET4.

like image 428
ChrisP Avatar asked Dec 12 '10 21:12

ChrisP


1 Answers

Try autocomplete='off' on the input field. Browsers should respect this - but of course they don't have to.

UPDATE: This is now part of HTML5, and according to that standard you can add autocomplete='off' to the form tag to have it apply to all fields within the form.

http://www.w3schools.com/html/html5_form_attributes.asp

like image 183
James Gaunt Avatar answered Sep 22 '22 19:09

James Gaunt