Hey guys, I just want to know if any of you has seen this behavior
before. Here's the story:

We are depending on the ModelGlue onSessionEnd to do a couple of
cleanup tasks in our application. We just have a couple of Controllers
respond to the OnSessionEnd message (set up in our modelglue config
file).

It all works great in our dev environment (we're running OS X), but
when we go to our Production environment (on Windows 2003), the Model-
Glue onSessionEnd simply stops firing. I have confirmed, by adding a
couple of cflogs, that the Application.cfc onSessionEnd is firing
correctly, but when it comes time to fire the ModelGlue onSessionEnd,
nothing is happening.

I have been able to isolate the problem to a call to the
invokeSessionEvent function inside the Application.cfc. If you look at
it, the code looks like this:

<cffunction name="onSessionEnd" output="false">
        <cfargument name="sessionScope" type="struct" required="true" />
        <cfargument name="appScope" type="struct" required="false" />

        <cfset invokeSessionEvent("modelglue.onSessionEnd",
arguments.sessionScope, arguments.appScope) />
</cffunction>

very simple right? If i place a cflog before the call to the function,
i can see that onSessionEnd gets called every time. If i place cflogs
inside the invokeSessionEvent function... nothing happens... it's
almost like it never gets called.

I have copied and pasted the invokeSessionEvent code INSIDE the
onSessionEnd function, and everything works great again. It doesn't
make any sense.

any ideas? :)

I will continue investigating this. My next idea is to wrap the
invokeSessionEvent on a try catch, see if anything if an error is
getting thrown in there...

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en

For more about Model-Glue, check http://www.model-glue.com .
-~----------~----~----~----~------~----~------~--~---

Reply via email to