Ask the Expert

Can I get a browser to 'echo' a password after postback?

On a user registration screen, we ask users to provide a password they would like to use in the system. Later in the form, we do a postback in order to show states related to a selected country. This postback clears out the password boxes. How can we keep the echoing capability of the password textbox and not force the user to re-enter their password?
As a matter of security, no browser will EVER "echo" the password back after a postback. This is by design, and you should carefuly consider why this would be a requirement. Almost everybody knows that registration form errors (processed after a postback) as well as login forms, etc., clear the password, so I suggest you're better off educating users instead of bypassing this feature. Let them save their passwords in the browser if they want to, but remember its THEIR responsibility if they do so.

This was first published in August 2003

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: