Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

password autosave prevention

Status
Not open for further replies.

echan

Programmer
Apr 3, 2001
15
AU
I want my asp login page to be guarded so that even if the user selects the option of "autosaving" the password, no prior password will be remembered when he/she logs in again - is it possible?
 
Hmm interesting, you could randomly create the textbox name for the password, then save the randomly created textbox name to a session then call it on the next page.


Code:
<%
Dim genTextBoxName


genTextBoxName = &quot;&quot;
Randomize
For i = 1 to 8
intNum = Int(10 * Rnd + 48)
intUpper = Int(26 * Rnd + 65)
intLower = Int(26 * Rnd + 97)
intRand = Int(3 * Rnd + 1)

Select Case intRand
Case 1
strPartPass = Chr(intNum)
Case 2
strPartPass = Chr(intUpper)
Case 3
strPartPass = Chr(intLower)
End Select
genTextBoxName = genTextBoxName & strPartPass
Next

Session(&quot;txtPass&quot;) = genTextBoxName
%>
<input type=&quot;text&quot; name=&quot;<%=genTextBoxName%>&quot;>


page2.asp

<%

Response.Write(Request.Form(Session(&quot;txtPass&quot;)))

%>
www.vzio.com
star.gif
/ [wink]
 
Is this the same thing with autocomplete feature?

You can use IE specific parameter in the input tag for this purpose. autocomplete=off
 
didnt know there was a way to shut it off, then again I never really ran into a situation where i needed to do this. But the way I showed you would work too. www.vzio.com
star.gif
/ [wink]
 
Was hoping for a client side script to trap and block the autosave feature of the browser but anyway - will try out the above methods...many thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top