found out the reason why the onsessionend was not always getting called - i had structclear(session) in the log out code which causes the onsessionend not to fire:
here is a good site that i got all the info from to get it working: http://www.daveshuck.com/blog/2008/01/16/Calling-OnSessionEnd-from-outside-the-Applicationcfc-to-log-out-users > right i see, thanks > > do you know of any supported ways of gathering all the active sessions. > i know some have suggested to copy the session into the application > scope onsessionstart and remove it onsessionend, however this has > caused us problems in the past and doesnt always get deleted. > > thanks > > > > > >I don't have an answer for your question, but since the > >coldfusion.runtime.SessionTracker class is an undocumented and > >unsupported "feature" of ColdFusion your only luck might be if an > Adobe > >programmer steps in and offers some insight to the inner working of > CF. > > > >Let us know what you find. > > > >~Brad > > > >hi > > > >i have been using the following code to analyse sessions: > > > >var oSession = createObject("java","coldfusion.runtime. > SessionTracker"); > >var mySessions= oSession.getSessionCollection(arguments.appName); > > > >i have noticed that sometimes a session has multiple instances. for > >example if i log in to our application (which creates a ), then dump > out > >the mySessions variable from above it sometimes has several > structure > >elements: > > > >appname_encryptedCode1 > >appname_encryptedCode2 > >etc... > > > >... and all instances have the same contents. > > > >they also do not get cleared when i use the structclear(session) > >function... i am using j2ee session variables > > > >this only happens sometimes and i cannot replicate it purposely > > > >does anyone have any ideas? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:323649 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

