Archive for August 6th, 2003

06
Aug

Access session vars from outside the session

There are many situations when it is necessary to access a session variable from outside the actual session. You may want an administrative page to list active users or you may want to utilize a scheduled task to process data stored in user’s sessions.

While it’s simple enough to create a sessions structure in the application scope to store all sessions, cleanup becomes an issue and you’re really duplicating work that ColdFusion must be doing internally anyways. After some digging I found that ColdFusion MX has a SessionTracker class that it uses to keep track of all sessions and you can access it to!

Continue reading ‘Access session vars from outside the session’

06
Aug

All about IllegalAccessException in CFMX

Occasionally when working with Java classes in ColdFusion MX gold you receive an error message, java.lang.IllegalAccessException. Why did you receive this when the method you’re calling is public? Why do we care since it’s been fixed in ColdFusion MX 6.1?

The answer to the first question leads into the second–exploring these issues helps us learn more about how ColdFusion MX works.
Continue reading ‘All about IllegalAccessException in CFMX’