Ever need a snippet to read in the active sessions running on your server? This code was recently posted to the CF-Talk list and I thought it was worth blogging for future reference. (Thanks to Raymond Camden and Dave Carabetta for the information.)
NOTE:This code relies on using internal undocumented ColdFusion factories. This means the code could potentially stop working if Adobe ever changes the internal factories.
This code does bring up a potential security issue. If you're on shared host environment, someone could spy on your application's session information if they new the application name. (Which you can also get from using built-in CF service factories.) If you're running commercial applications, you should never run code on a non-sandboxed shared server. Preferably, a commercial application should have it's own dedicated servers.
2 Comments
Comments for this entry have been disabled.