Thursday, 21 November 2013

Can you run some code for me please?

G'day:
I have a quick favour to ask.

Could you please run this code, and lemme know what you get?

<cfdump var="#createObject("java", "coldfusion.runtime.SessionTracker")#">

I get this:

object of coldfusion.runtime.SessionTracker
Class Namecoldfusion.runtime.SessionTracker
Methods
MethodReturn Type
createSession(java.lang.String, java.lang.String)coldfusion.runtime.SessionScope
createSession(javax.servlet.http.HttpSession, java.lang.String)coldfusion.runtime.SessionScope
createSession(java.lang.String, java.lang.String, java.lang.String)coldfusion.runtime.SessionScope
getMSessionPool()java.util.Hashtable
getSession(javax.servlet.http.HttpSession, java.lang.String)coldfusion.runtime.SessionScope
getSession(java.lang.String, java.lang.String)coldfusion.runtime.SessionScope
getSession(java.lang.String, java.lang.String, java.lang.String)coldfusion.runtime.SessionScope
getSession(java.lang.String)coldfusion.runtime.SessionScope
getSessionCollection(java.lang.String)coldfusion.runtime.AppSessionCollection
getSessionCount()int
getSessionKeys()java.util.Enumeration
sessionInvalidate()void
Fields
FieldValue
int mSweepInterval10000

What I do not get is a cleanup(java.lang.String, java.lang.String) method listed. However sometimes some people do.

If you look at Leigh's comments on this question on Stack Overflow: "ColdFusion SessionTracker and forcing the session to end", he's seen it. And on one of our CF instances we see it too.

It's not a ColdFusion version situation, as we're all looking at the same version: 9,0,1,274733. It doesn't seem to be a Java-version difference (and there'd be no logic to this if there was!), as I've checked Java 6 and Java 7. We can't think what the differentiating factor might be.

So if you could please run that code and post back with whether you see a public cleanUp() method in there or not, and your CF version, OS, install type etc... that'd be really helpful.

Cheers.

--
Adam