Thanks James. That's about what I figured. I'm trying a very
simplified example but no luck... Here's what I have so far:
Application.cfm
<cfcomponent output="false">
<cfset this.name = "testSessions">
<cfset this.applicationTimeout = createTimeSpan(0,0,1,0)>
<cfset this.clientManagement = true>
<cfset this.clientStorage = "cookie">
<cfset this.loginStorage = "session">
<cfset this.sessionManagement = true>
<cfset this.sessionTimeout = createTimeSpan(0,0,0,30)>
<cfset this.setClientCookies = true>
<cfset this.setDomainCookies = false>
<cfset this.scriptProtect = false>
<cffunction name="onApplicationStart" returnType="boolean"
output="false">
<cfset Client.testVar = "onApplicationStart">
<cfreturn true>
</cffunction>
<!--- I removed onApplicationEnd, onRequestStart, onRequestEnd,
onError for clarity --->
<cffunction name="onSessionStart" returnType="void" output="false">
<cfargument name="sessionScope" required="yes">
<cfargument name="appScope" required="no">
<cfset appScope.Client.testVar = "onSessionStart">
</cffunction>
<cffunction name="onSessionEnd" returnType="void" output="false">
<cfset appScope.Client.testVar = "onSessionEnd">
</cffunction>
</cfcomponent>
Then in my cfc (or cfm file), I have a function that contains this line:
<cfset Client.testVar = "SomeOtherVar">
Any ideas? To me it seems like none of the methods in my
Application.cfc are firing at all. The directory structure looks like
so:
/Application.cfc
/test/index.cfm
Thanks,
John
On Jun 12, 2007, at 3:26 AM, James Holmes wrote:
> Well onSessionStart and onSessionEnd must go in Application.cfc. This
> will need to go in a folder somewhere above the files that your
> remoting calls are hitting. I assume you're handling the cookies for
> sessions somewhere in your client code?
>
> On 6/12/07, John Robinson <[EMAIL PROTECTED]> wrote:
>> I should note that I'm specifically having trouble with
>> onSessionStart and onSessionEnd... basically where to put them (in
>> someFile.cfc or Application.cfc or Application.cfm or....?). What I
>> want is to run a sql query in onSessionEnd, using the vars from the
>> session (or cookie... I don't really care where they're stored, as
>> long as they're unique to each user).
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion MX7 by AdobeĀ®
Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7.
Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:280809
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4