I think you can capture #date(now)# in the session, and #date(now)# when the
session ends.
And parse it from there...
-----Original Message-----
From: rkern - Prolynx <[EMAIL PROTECTED]>
To: CF-Talk <[EMAIL PROTECTED]>
Date: Monday, April 10, 2000 2:03 PM
Subject: CF Talk, calculating elapsed time
To all,
I'm looking for some ideas on how to implement a timer that tracks
customer time on site.
Situation - customer logs in, goes to study pages, at the point of login
I start the timer. After a ten minute increment the 10 minutes are
added to the totaltime in the user database. posting may be automatic
or through submit button. if user leaves during the next 10 minute
increment, nothing is posted to the database.
approaches to date include:
serveral forms of
<cfset Client.ETHours = Abs(DateDiff("h",Client.TimeCreated,
Client.LastVisit)) >
the problem is that 'timecreated' gives a start date but is a static
value that will allow for total time from when the account is
generated. 'lastvisit' appears to be updated everytime the user comes
back to the page rather than just at login.
Have also considered client session variable storage. The variables
appear in the database but are all in one field separated by # signs. I
am looking for something cleaner.
Need - idea that allows a timer function to kick off at login and then
continue to run as long as they are on site in ten minute increments.
The timer is not the issue (I can use a simple loop ), where to
establish it is and how to use it accross the entire session and site
is.
any comments would be appreciated
Thanks
Richard
--
The Prince - Niccollo Machiavelli (1532)
Has some advice to his prince on engaging mercenaries.
Mercenaries are into it for the money and will run at the first sign of
trouble. Hire men who will die for you.
----------------------------------------------------------------------------
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.