views:

650

answers:

3

I've noticed on bank websites, etc, my user IDs aren't saved (they don't appear in a dropdown like other commonly entered stuff does) and there's no prompt for it to remember your password. How is this done? How do the sites notify the browser that they are in 'special' or else exceptions? Just curious.

+6  A: 

Usually you just need to put the autocomplete="off" into the form or field you want to block.

Keep in mind that users can get around this with a scriptlet, plugin, or grease-monkey script.

https://developer.mozilla.org/en/How_to_Turn_Off_Form_Autocompletion#Exceptions_and_Recommended_Workarounds

http://msdn.microsoft.com/en-us/library/ms533032(VS.85).aspx

Zoredache
Wow, it's funny that I'd never heard of this. Thanks.
naeblis
+5  A: 

Set autocomplete to off:

<input type="password" autocomplete="off" />

See also this question: http://stackoverflow.com/questions/32369/disable-browser-save-password-functionality

Robert Gamble
A: 

Autocomplete behavior can be controlled at TextBox also.

As suggested in link below, use AutoCompleteType = "Disabled" to disable autocomplete for any textbox.

http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.textbox.autocompletetype.aspx

BinaryHacker