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.
 
It's probably your browser doing it. Make sure any options to remember forms and such are turned off.
 
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="" />
 
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.
 
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!
 
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.
 
hey guys- thank you so much. i will check this out, if it works I will post back here about it.
 
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.
 
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.
 
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.
 
Back
Top