Can we count website hits using a coldfusion session variable?
Posted on 2006-11-18
I want to track users by the number of clicks or pages loaded. We currently use a decent custom written CF controlled sql database logfile. But I'd rather not have track the idle user, not logged in, in some simpler way, if possible.
I want to be able to control the amount of hits to the system per user and pass that info back to CF so the user is not allowed access to certain areas. Can this be done automatically with some kind of session variable? And yes, I know I can do this with a cookie and know how, but I'd rather make it simpler if at all possible.
I know I'm groping here but can cf5 on win2000 keep track of such info? I know I can do this by setting a variable in each page and counting the number of times that variable is loaded, and record it to a cookie but I want to keep this as simple as possible.
So, I'm looking for neat ideas and how best to impliment it.