Posted At : October 29, 2006 11:45 PM
One of the most commonly requested stats a site owner wishes to know is how many people are on their site at a moment in time. Coldfusion doesn't give an inbuilt way to get this information, but a bit of hacking in the cfusion jar file and introspection of the objects gives us what we need.
But then we may have a number of applications running on our site - and we want to see what the breakdown of activity is among each of our applications.
By passing in the application name this will return the number of sessions for a particular application. Neato.
If you link this code up with the the Application scope hackery you can create a nice table of session counts for all you applications.
0 Comments