Present Textbox "dropdown" in Login Form

Hi Experts,

I have a Login form with user name and password, and on the form's tag I have autocomplete = "off". However, on my client's PC, not on mine, and specifically on Chrome, they still get a list of who logged in. How can I fix this?

Thank you
APD TorontoAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ray PaseurCommented:
... get a list of who logged in.
How does this happen?  Is there a database and some code involved?
0
Dave BaldwinFixer of ProblemsCommented:
Chrome is probably caching previous entries into the form.  Post the code for the form so we'll be talking about the same thing.

PS: Chrome is very good at remembering.  It even remembers my banking login when no other browser will.
0
arnoldCommented:
Agree with Dave Baldwin that it is likely chrom caching info being su bitter in the form.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Dave BaldwinFixer of ProblemsCommented:
It appears that the Chrome team was still arguing about this last month https://code.google.com/p/chromium/issues/detail?id=352347 and there is no reason to think it will be fixed soon.  I do know how to get around this if your login page is PHP.  Basically, you change the 'name' of the field every time it is loaded and use PHP to identify the correct field when it is posted.  There are several ways to do that including storing the name in a $_SESSIONS variable.  With a different name every time, there will be no history for that input.
0
Dave BaldwinFixer of ProblemsCommented:
On another page, it was mentioned that using autocomplete="off" can prevent new entries from being saved but does Not delete old ones that were saved.
0
Dave BaldwinFixer of ProblemsCommented:
Here is a demo showing how to do it.  Save as 'VaryLogin.php' because it posts to itself.  The Name field changes it's 'name' attribute each time while the Email field does not.  The Name field has no history but the Email field still does because it's 'name' attribute doesn't change.
<?php // VaryLogin.php by Dave Baldwin
error_reporting(E_ALL);
ini_set('display_errors','1');

session_start(); 
$title = "Variable Login Name Field";

if(isset($_SESSION['pname'])) $pname = $_SESSION['pname'];
else $pname = 'nameText';
# some settings of vars
if (!isset($_POST[$pname])) $nameText = ''; else $nameText = $_POST[$pname];
if (!isset($_POST['fromText'])) $fromText = ''; else $fromText = $_POST['fromText'];

// new name
$nutime = time();
$newText = 'nu'.md5($pname.$nutime);
$_SESSION['pname'] = $newText
?>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title><?php echo($title)?></title>
<style type="text/css">
<!-- 
A:link { color: #999999; }
A:visited { color: #999999; }
A:hover {color: #0099ff;}
-->
</style>

</head>

<body bgcolor="#ddeedd">
<div align="center">
<table border="1" cellpadding="0" cellspacing="0" summary="" width="580">
<tr><td align="center">
<font size="4" color="#000000">
<p>Previous name was <?php echo($pname)?>.<br>New name is <?php echo($newText)?></p>
<form method="POST" action="VaryLogin.php">
    <p><font size="3"><b>Name : <input type="text" name="<?php echo($newText)?>" size="46"></b></font></p>
    <p><font size="3"><b>Email: <input type="text" name="fromText" size="46"></b></font></p>
    <p><font size="3"><b><input type="submit" value="Send" name="send" style="font-family: Arial; font-size: 12pt; font-weight: bold"></b></font></p>
    <input type="hidden" name="state" value="1">
  </form>
</td></tr>
</table> 
</div>

</body>
</html>

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
APD TorontoAuthor Commented:
I took the user name out of the <form>, then make a hidden field within, and with JS copied the value onSubmit. :)
0
Dave BaldwinFixer of ProblemsCommented:
That's a good way too.!  Thanks for the points.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
HTML

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.