CFTracker
CFTracker is a CFC for ColdFusion (7/8) which provides methods for accessing the following information:
- Names of all active applications
- Get the application scope keys for any active application
- Get values from any application scope (CF8 Only) without changing the last accessed time
- Application details (time alive, last accessed, idle timeout, expiry status)
- Names of all sessions or per application sessions
- List of keys for any session scope
- Get values from any session (CF8 Only) without changing the last accessed time
- Session information (time alive, last accessed, idle timeout, expiry status)
- ColdFusion Memory information (free, allocated, free allocated, used, maximum allocatable)
Planned additions
There is a setMaxInactiveInterval method for application / session scopes but I’ve been unable to use it so far without triggering the last accessed time to update. Anyone with some Java reflection knowledge could probably work it out, *hint* *hint*.
Usage example
<cfscript>
cfcTracker = CreateObject('component', 'tracker').init();
apps = cfcTracker.getApplications();
sess = cfcTracker.getSessions(apps[1]);
</cfscript>
Download and issue reporting
Thanks to the awesome RIAForge, you can download CFTracker from its project site.
Credit
- Ben Nadel
For discovering the Java array.Contains() method - Teeps (Terry Palmer) & his co-worker Java guy
For getting getValueWIthoutChange working.
Recent Comments