Solved

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

Posted on 2007-03-20
4
161 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
PowerShell:  Where-Object not working as a filter 2 95
How to force output to ascii 2 62
Azure Web App - HTTP Redirect - web.config file help 23 57
What are MicroServices? 4 67
Foreword (May 2015) This web page has appeared at Google.  It's definitely worth considering! https://www.google.com/about/careers/students/guide-to-technical-development.html How to Know You are Making a Difference at EE In August, 2013, one …
A Change in PHP Behavior with Session Write Short Circuit (http://php.net/manual/en/book.session.php#116217) (Winter 2014)** With the release of PHP 5.6 the session handler changed in a way that many think should be considered a bug.  See the note …
Wufoo.com provides powerful tools for surveying targeted groups, and utilizing data from completed surveys to find trends, discover areas of demand or customer expectation, and make business decisions on products or services.
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.

734 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