|
-
August 20th, 2008, 07:01 AM
#1
Autoforget password?
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?
-
August 22nd, 2008, 12:57 AM
#2
Re: Autoforget password?
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 :
HTML Code:
<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 :
Code:
Textbox1.Attributes.Add("autocomplete", "off");
Try it, and see if this is what you're after
-
August 25th, 2008, 01:42 AM
#3
Re: Autoforget password?
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.
-
August 25th, 2008, 12:52 PM
#4
Re: Autoforget password?
Nice and simple answer...it can't be done, unless you want to make your own internet browser.
If the post was helpful...Rate it! Remember to use [code] or [php] tags.
-
August 26th, 2008, 02:52 AM
#5
Re: Autoforget password?
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...
-
August 26th, 2008, 04:21 AM
#6
Re: Autoforget password?
If I remember correctly, It should work in FireFox as well
-
August 26th, 2008, 07:58 AM
#7
Re: Autoforget password?
Tools -> Options -> Security -> Uncheck "Remember passwords for sites"
Just remember, this is only a browser by browser basis.
If the post was helpful...Rate it! Remember to use [code] or [php] tags.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|