Turn off application="true". I think that may be breaking your logging. Remember that in onSessionEnd, you only have indirect access (via arguments) to the session/application scopes.
On Sat, May 3, 2008 at 4:39 PM, marc -- <[EMAIL PROTECTED]> wrote: > The subject says it all- I can't get my onSessionend to execute. > For testing, all I do is a call to a log file. > The sessionTimeout is 2 secs. I hit the page. Wait > 2 secs. Hit the page > again. Switch over to the Coldfusion administrator to the logging page. There > is no log by the name of onSessionEnd as specified. What can be the reason? > Here's the code. > > Application.cfc: > <cfcomponent extends components.ApplicationRoot> > <cfcomponent> > > ApplicationRoot: > <cfset THIS.applicationTimeOut=CreateTimeSpan(2,0,0,0)>\ > <cfset THIS.sessionmanagement=true> > <cfset THIS.setclientcookies=true> > <cfset THIS.sessionTimeOut=CreateTimeSpan(0,0,0,2)> > > <cffunction name="onSessionEnd" access="public" description="perform actions > on session end" output="false"> > <cfargument name="sessionscope" type="struct"> > <cfargument name="applicationscope" type="struct"> > <cflog file="onSessionEnd" application="true" text="hello, this > session has ended"> > </cffunction> > > You see I use a "root" Application.cfc that has all shared functionality. I > only overide specific parts (like THIS.name) in the extending Application.cfc > components > Oh, if I explicitly call onSessionEnd in Application.cfc via createobject* > the code executes correctly ansd a log by ythe name of onSessionEnd is > created. > Thanks for any tips. > > * from http://www.coldfusionmuse.com/index.cfm/2005/6/21/cfmx7_onsessionend > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:304711 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4