Logins stored in web application and what is best way to secure MVC 4 web application
Guest question :In my MVC 4 web application when ever I try to login , browser is showing me already entered login details in text boxes. Can any one suggest me how can I prevent textboxes from retaining already entered login details in browser. What is the best way to secure MVC 4 web application?
solutions :
1. Try to delete browser cookies and then try with autocomplete feature and clear text box values. Set the autocomplete feature of the input control to "off".
2. You can disable this feature by using autocomplete=false tag
3. For this use jquery and in document.ready
empty both text boxes using their respective id's
Lets take a example if you have username textbox with id txtUserName : use
$("#txtUserName").val ("");
and for password
if you have password textbox with id txtPassword : use
$("#txtPassword").val ("");
Complete example below:
$(document).ready (function () {
$("#txtUserName").val ("");
$("#txtPassword").val ("");
});
No comments:
Post a Comment