This seems to work fine:

    <cffunction
    name="OnSessionStart"
    access="public"
    returntype="void"
    hint="Fires when user session initializes .">
        <cfcookie name="CFID" value="#SESSION.CFID#" />
        <cfcookie name="CFTOKEN" value="#SESSION.CFTOKEN#" />
        <cfset SESSION.DateInitialized = Now() />
        <cffile addnewline="yes" action="append" 
file="#expandpath('/test/test.txt')#" 
        output="A New Session: #SESSION.CFID# began on 
#SESSION.DateInitialized#">
    <cfreturn />
    </cffunction>
        
    <cffunction
    name="OnSessionEnd"
    access="public"
    returntype="void"
    hint="Fires when user session ends"
    >
        <cffile addnewline="yes" action="append" 
file="#expandpath('/test/test.txt')#" 
        output="A Session Ended:  #Now()#">
    </cffunction>

    <cffunction name="OnRequest"
    access="public" output="yes" >
        <cfset OnSessionEnd()>
    </cffunction>



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321016
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to