Solved

Want to clear usenamse and password from logon page upon successful login validation.

Posted on 2007-03-20
4
151 Views
Last Modified: 2013-12-17
Dear Experts,

What I want is to alway the username and password from my logon page which the user inadvertently saved. This means I want to disable dialog that ask to save password and always clear that logonname and password upon logon successed.

Your help would be highly appreciated.

Thanks

 
0
Comment
Question by:JaimeJegonia
4 Comments
 
LVL 15

Accepted Solution

by:
crisco96 earned 500 total points
ID: 18762937
Add the following to your Page_Load which will disable caching and force the user to re-load the page if they press the back button (clearing the username/password fields):
      Response.Cache.SetExpires(DateTime.Now.AddYears(-1));
      Response.Cache.SetRevalidation(HttpCacheRevalidation.AllCaches);
      Response.Cache.SetNoStore();
      Response.Cache.SetNoServerCaching();
      Response.Cache.SetCacheability(HttpCacheability.NoCache);

You then need to add autocomplete="false" to your username and password field which you can do with the following code (changing the IDs of course)
      Username.Attributes.Add("autocomplete", "false");
      Password.Attributes.Add("autocomplete", "false");
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
It’s a strangely common occurrence that when you send someone their login details for a system, they can’t get in. This article will help you understand why it happens, and what you can do about it.
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to choose which pages of your form are visible to your users based on their inputs. The page rules feature provides you with an opportunity to create if:then statements for y…
Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now