• Crispin, that's very naughty

    Oh, and I think you just need to log the time as the last command of every ASP page. (trapping between the first and last commands just tells you how long the asp code took to execute). I think what Crispin means is you deduce the time spent on the previous page like this.

    1) Execute usual ASP page commands

    2) Retrieve cookie value of [LASTACCESS]

    3) If [LASTACCESS] is set then:

    Update your DB to show the time spent on the last page (HTTP-REFERRER) as [NOW]-[LASTACCESS]

    4) Set the [LASTACCESS] cookie value to now

    remember to set the LASTACCESS cookie to expire within a reasonable time period ...

    Edited by - planet115 on 07/14/2003 07:57:57 AM