This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes PHP and the fly likes i need help on loggin account limit Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Languages » PHP
Bookmark "i need help on loggin account limit" Watch "i need help on loggin account limit" New topic
Author

i need help on loggin account limit

muntago Richard
Ranch Hand

Joined: Nov 13, 2010
Posts: 82
Good day everyone, This code updates or counts the number of times users logged in. I want to disable or make users login account invalid on 4th attempt by loading an error page such that the user will be ask to get new account. how do I proceed. Below is my attempt so far. Do i need to set count <=4 to true? or false?. If possible,how
thanks

Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18710
    
    8

Look at it this way: when count is equal to 1, that means the user has made only one login attempt so far, right? So now consider what your code would do when count is equal to 1. Is that what you would want it to do?
muntago Richard
Ranch Hand

Joined: Nov 13, 2010
Posts: 82
No my intention was to allow each user to login only 4 times and on 5th login attempt let it display an error message that their login credential is no longer valid meaning that they should get new username and password.
Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: i need help on loggin account limit