keeping logins from being remembered

iansilv

Limp Gawd
Joined
Jun 10, 2004
Messages
335
OK- my bank website does this, but I cannot figure out how to get mine to. I don;t want it to remember- ever my login. You know when you type in a login and the login preiously typed starts to show, then you hit enter, and the password shows up too? I don;t want it to do that- like octfcu.org. How can you do this? We are using asp.net.

Thank you for any help you can provide.
 

GJSNeptune

[H]F Junkie
Joined
Mar 31, 2004
Messages
12,372
It's probably your browser doing it. Make sure any options to remember forms and such are turned off.
 

maw

Supreme [H]ardness
Joined
Sep 27, 2000
Messages
4,134
I doubt that this would work, but try setting the value for the form field explicitly to blank.

Eg. <input type="text" name="username" value="" />
 

SoRnMaN

Gawd
Joined
Jan 22, 2002
Messages
835
Well, looking at the source for octfcu.org, it seems they are using a 'autocomplete="off"' on their forms.

A simple google search for 'no autocomplete form' gave this page:

http://developer.mozilla.org/en/docs/How_to_Turn_Off_Form_Autocompletion

Once you get into that page, their are examples of how to turn off autocomplete from the html side, rather than the browser side.

Code:
<form name="form1" id="form1" method="post" autocomplete="off"
  action="http://www.example.com/form.cgi">
[...]
</form>

Then further down, exceptions and recommended workarounds. So I guess reading up on that page would provide you with all the info you need.
 

maw

Supreme [H]ardness
Joined
Sep 27, 2000
Messages
4,134
Well, looking at the source for octfcu.org, it seems they are using a 'autocomplete="off"' on their forms.

Code:
<form name="form1" id="form1" method="post" autocomplete="off"
  action="http://www.example.com/form.cgi">
[...]
</form>

Then further down, exceptions and recommended workarounds. So I guess reading up on that page would provide you with all the info you need.

wow, i never heard of that feature. I guess I can still learn something new in web world after all!
 

SoRnMaN

Gawd
Joined
Jan 22, 2002
Messages
835
That's ok maw, I didn't know about it either until I viewed the source for that page, and did a google search, heh.
 

iansilv

Limp Gawd
Joined
Jun 10, 2004
Messages
335
hey guys- thank you so much. i will check this out, if it works I will post back here about it.
 

iansilv

Limp Gawd
Joined
Jun 10, 2004
Messages
335
OK- I had my developer implement this, and this works well. I think I just need to figure out how to adjust the cookies so that when a page is closed, they have to re login.
 

deuce868

Gawd
Joined
Feb 13, 2004
Messages
863
Just be aware that autocomplete=off is not a magic bullet. Not all browsers respect this. It took a debugging over a couple of days to figure out why the boss was still complaining about pre-filled fields.
 

Javi

Weaksauce
Joined
Sep 2, 2005
Messages
97
the autocomplete=off flag is irrelevant based on the OP's question.

The user needs to go into browser settings (in IE, go to Tools, Internet Options, Advanced, look for any Autocomplete stuff) and turn it off.

iansilv - Just because you wants autocomplete off, it also doesn't mean that every other user wants it off.

As far as the cookies go, tell your developer to have the cookies expire when the page is closed.
 
Top