Click here to Skip to main content
15,907,326 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi to All,
I have ap.net login control,i want locked password with in 4 attempts using asp.net. please help me regarding this.

Please give me an example on how to do this.

Thanks & regards,
Narasima
Posted
Updated 22-Mar-10 2:35am
v4

OK so keep a count of how many times someone tries to login using a particular username, then if it is greater than 4 don't allow that account to login, if it is less than 4 and a login is successful set the login attempt field to 0 (zero).

So you will need to track login attempts and account lock status at a minimum. If you also want an automatic reset after say 24 hours you will also have to track last login attempt date/time.
 
Share this answer
 
Hi,
Please give an example fro this.
Regards,
Narasima
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900