onSessionend not running (CF8)
Hi!
Im trying to run onSessionEnd in my test Application.cfc but it wont work. I have read a lot of articles and all of them say this have to work. Even Ben Fortas "web application construction kit".
datasource and query are ok...
so im oppening my test index.cfm but after 10 seconds nothing happens... no database entry...
please help...
this is my Application.cfc
<cfcomponent
displayname="Application"
output="true"
hint="Handle the application.">
<cfset THIS.Name = "Application_test" />
<cfset This.SessionTimeout=CreateTimeSpan( 0, 0, 0, 10 )/>
<cfset THIS.SessionManagement = true />
<cffunction
name="OnSessionEnd"
access="public"
returntype="void"
output="false"
hint="Fires when the session is terminated.">
<cfargument
name="SessionScope"
type="struct"
required="true"
/>
<cfquery datasource="test_datasource" name="proba">
INSERT INTO tbl_test(mytest) VALUES('this is test')
</cfquery>
</cffunction>
</cfcomponent>
