Answered
session.times_logged_on question
Hello;
I am using this code to lock out a user if they unsuccessfully attempted to log into an area. This code works nice! Can't dump it from the cookies and it really locks you out. BUT... It locks you out forever as far as I can see... and I need to put a time limit on it. That is where I am kind of lost.
This is my code:
<CFPARAM NAME="session.times_logged_on" default="0">
<CFIF session.times_logged_on gt 3>
<font color="#990000" face="Verdana, Arial, Helvetica, sans-serif" size="2"><b>Sorry too many attempts to log in. An email has been sent to the Administrator with your information:<br>
<cfoutput>#CGI.REMOTE_ADDR#<br>
#HTTP_USER_AGENT#<br><br></cfoutput></b></font>
<CFELSE>
my login form here
</cfif>
is there a way to put a timmer on this? so if they fail, they get locked out, but in lets say 20 min they can try again.
How would I do that?
Thank you.
I am using this code to lock out a user if they unsuccessfully attempted to log into an area. This code works nice! Can't dump it from the cookies and it really locks you out. BUT... It locks you out forever as far as I can see... and I need to put a time limit on it. That is where I am kind of lost.
This is my code:
<CFPARAM NAME="session.times_logged_on" default="0">
<CFIF session.times_logged_on gt 3>
<font color="#990000" face="Verdana, Arial, Helvetica, sans-serif" size="2"><b>Sorry too many attempts to log in. An email has been sent to the Administrator with your information:<br>
<cfoutput>#CGI.REMOTE_ADDR#<br>
#HTTP_USER_AGENT#<br><br></cfoutput></b></font>
<CFELSE>
my login form here
</cfif>
is there a way to put a timmer on this? so if they fail, they get locked out, but in lets say 20 min they can try again.
How would I do that?
Thank you.
