Disabled Autocomplete of login form

Posted By : Rahul Sarkar | 10-Jun-2017

Here I am going to describe you that how to disabled Autocomplete of the Input box.

 

For Security purpose of the website we have to disable the Autocomplete to fill automatically the login details of the user in to the login form, Most browsers have a facility to remember user credentials that are entered into HTML forms. Since autocomplete is enabled, credentials entered by the user are stored on their local computer and retrieved by the browser on future visits to the same application. The stored credentials can be captured by an attacker who has access to the computer, either locally or through some remote compromise.

To prevent browsers from storing credentials entered into HTML forms, developer should include the attribute autocomplete="off" within the FORM tag (to protect all form fields) or within the relevant INPUT tags (to protect specific individual fields).

But the only including the attribute autocomplete="off" is not working, we need to do some tricky code to disabled the autocomplete, and the code are below:

          
            
            
            
            
           

The above code will help to prevent autocomplete the login form.

 

Thanks!!!

About Author

Author Image
Rahul Sarkar

Rahul is an intellectual web app developer, he has good knowledge of C, Java, Java Script, Jquery. Apart from this he likes to travel and explore new places.

Request for Proposal

Name is required

Comment is required

Sending message..