hcarousel
12-05-2005, 09:42 AM
What I want to do is to record the time a visitor spends on a Web page? I am now thinking to use methods like Date.getSeconds(), Date.getTime(), etc. I was wondering if there is a better way to do this.
Thanks!
lmf232s
12-05-2005, 10:55 AM
Give this a shot
In your global.asa file add two subs
Sub Session_OnStart()
End Sub
Sub Session_OnEnd()
End Sub
Or
Sub Application_OnStart()
End Sub
Sub Application_OnEnd()
End Sub
You can write the time to a DB for that user using
NOW()
When they visit the site and when they leave.