I am doing simple project on user validations.In this I need to validate user password .if user has not providing the right password,we have to give again chance to enter.this chance only three times.if it more than thrice we suppose to pass the forgot password form.this is my main objective.how is check these one.where can put counter variables.
for this is there any need to maintain any sessions.if it is, give me some related information.
kesaps.