Click to See Complete Forum and Search --> : Autoforget password?


TubularX
August 20th, 2008, 07:01 AM
As you probably know, Internet Explorer (and most other browsers) has an option to remember passwords.

I want to make a login page that doesn't let the browser remember the passwords. Never, regardless the browser options. Any ideas how this can be done safely? I guess I can't use the textbox webcontrol with TextMode set to password anymore?

HanneSThEGreaT
August 22nd, 2008, 12:57 AM
Not sure if this will help, but I do think so :)

Perhaps if you make your form with autocomplete off.
Autocomplete is the feature IE uses to remember your usernames and passwords, so if you type in your username, it automatically gives you the list of stuff you've entered previously, as wel as enter your password automatically. By turning it off, it won't be remembered.

Try this :
<form id="Form1" method="post" runat="server" autocomplete="off">
To turn off auto-complete for one Textbox only:<asp:TextBox Runat="server" ID="Textbox1" autocomplete="off"></asp:TextBox>

Or, At Runtime, you could use this :
Textbox1.Attributes.Add("autocomplete", "off");

Try it, and see if this is what you're after :)

Alsvha
August 25th, 2008, 01:42 AM
I doubt turning off autocomplete will help, because it isn't autocomplete as such when the browser asks if it should remember your password.
Autocompletion is just the small "drop down list" suggestions when you type in text fields.

I actually doubt you can do what you desire, because it is built in browser functionality and not a asp.net functionality. I've not tested it, but I do doubt it'll work.

PeejAvery
August 25th, 2008, 12:52 PM
Nice and simple answer...it can't be done, unless you want to make your own internet browser.

TubularX
August 26th, 2008, 02:52 AM
I thank you for your replies!

Disabling autocomplete at least made the "remember password?"-dialog go away in IE 7.0! I don't know yet about other browsers...

HanneSThEGreaT
August 26th, 2008, 04:21 AM
If I remember correctly, It should work in FireFox as well

PeejAvery
August 26th, 2008, 07:58 AM
Tools -> Options -> Security -> Uncheck "Remember passwords for sites"

Just remember, this is only a browser by browser basis.