views:

284

answers:

3

Hi

I know that this feature is to enhance user experience (by not retyping their details every time) and users can tweak their browser settings, but is it possible to send some "headers" etc (or any method, I mean server side controlling) so that when users try to log into my site they dont get this "Do you want IE/Firefox to remember your password?" prompt?

I am not very sure if it is possible? what would you say? Any ideas will help.

Thanks.

+8  A: 

Add autocomplete="off" to the <form>

Mozilla docs on autocomplete

+7  A: 

Put 'autocomplete="off"' in the input tag of the field. This works in IE and Firefox, but it's not part of the HTML standard, so you'll end up with invalid mark-up.

Vex
Very few people care about Valid markup. I find it funny when they put buttons on their site to show that its valid and they rarely are valid.
Ben Shelock
+1  A: 

Besides using the autocomplete attribute you could add a random number to the url that receives the posted form.Each time the form is presented to the user it will be different so the browser's attempt to recall will fail.

mP