angst
12-02-2005, 09:37 PM
Hi,
I'm trying to make a login system ( which is done ) that can lock a user out after 4 bad login attempts.
so far I've got all the info being logged to sql.
logging:
ip, date, time, user, password, domain,
and my code so far:
ip = Request.ServerVariables("REMOTE_ADDR")
SQL = "SELECT TOP 10 * FROM LockoutLog WHERE ipaddress='"&ip&"' AND ORDER by lid DESC"
and trying to use
DateDiff("n", Now(), rs("logtime")
to start writing some if statements,
but I'm a little stuck at the moment on how to best accomplish this.
any help would be greate!
thanks in advance for your time!
-Ken
[/php]
I'm trying to make a login system ( which is done ) that can lock a user out after 4 bad login attempts.
so far I've got all the info being logged to sql.
logging:
ip, date, time, user, password, domain,
and my code so far:
ip = Request.ServerVariables("REMOTE_ADDR")
SQL = "SELECT TOP 10 * FROM LockoutLog WHERE ipaddress='"&ip&"' AND ORDER by lid DESC"
and trying to use
DateDiff("n", Now(), rs("logtime")
to start writing some if statements,
but I'm a little stuck at the moment on how to best accomplish this.
any help would be greate!
thanks in advance for your time!
-Ken
[/php]