hi there kianoosh..
well, first of all,
the problem with using session is
(i actually dont prefer to call it 'problem')
i guess it always start a new session everytime u log off
or close ur browser...
so u wanna make em locked down permanently eh..
(or at least until you unleash the,,)
i guess... IMHO, you can log their IP in the database..
and then, count how many attempt...
if say they manage to enter before 3 strike,
then reset the login attempt,
login_attempt = 0 and strike_out = 0 (which is false)
in the db...
say if the IP's login_attempt = 2,
and they think they can outsmart ya,
by closing the browser when the login_attempt = 2,
hoping that it will reset..
bzzz.. wrong answer...
coz when they use the same IP, the login_attempt wont reset,
unless they manage to login..
if they got a strike out...
blacklist the IP...
so everytime they use the same IP,
your system will check the IP,
and it will find out strike_out = 1
bob's ur uncle.. and baammm!!!....
NO LOGIN...!!!
how's that??
i'm sorry if i dont include any code..
i'm only good at imagining strategy.. π
a little bit new to this PHP thingy... :p
hope somehow it help..
have a nice day bud...
-jassh