start with a session variable, session.loginAttempts, and set the
initial value to 0 using cfparam. Then with each attempt increment
that value on the login processing page.
A suggestion, it appears that you're fairly new with CF. I'd reccomend
getting Ben Forta's book ColdFusion Web Application Construction Kit.
Its a very good starter and also an excellent reference. It also has a
section of securing CF pages and sites.
http://www.amazon.com/exec/obidos/tg/detail/-/0321125169/qid=1092344783/sr=1-2/ref=sr_1_2/002-9500864-1079241?v=glance&s=books

for the link challenged, here's a shorter version courtesy of MD:
http://www.houseoffusion.com/tiny.cfm/72

hth,
larry

On Thu, 12 Aug 2004 17:02:37 -0400, Steve Kahn <[EMAIL PROTECTED]> wrote:
> Dear Friends,
>
> I want to make a secure login section to a site that I can count the hits and record the user's last login.
> My MSsql is set up with:
>
> UserID Autonumber
> UserName varchar
> Password varchar
> Date varchar
> Hits ?
> LastLogin varchar
>
> How do I set the "hits" to an initial value of "0"?
> <cfform>
> <input type="hidden" name="Date" value="<cfoutput>#DateFormat(Date,'mm/dd/yyyy')#</cfoutput>">
> <input type="Hidden" name="Hits" value="#IncrementValue(Hits)#">
>
> Which is better to use for the value of "lastlogin"?
> <input type="hidden" name="lastlogin" value="#DateFormat(LastLogin,'mmmm/dd/yyyy')#">
> <input type="Hidden" name="LastLogin" value="#Now()#">
> </cfform>
>
> Thanks
> Steve
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to