Because the onRequest method doesn't correspond to the Application.cfm
behavior -- it corresponds to the execution of the base template...
However, in some cases you can simply inlcude the Application.cfm in
the onRequestStart method. If you set any local varaibles (not in
request or other shared scope) in the Application.cfm you'll need to
also include the onRequest method (and possibly onRequestEnd, I'm not
sure) in order to make local variables shared between your
Application.cfm and the base template the way they are when
Application.cfc is not used.

> why not just cfinclude your application.cfm in the
> onRequest method?

> tw

> On 3/17/06, Asim Manzur <[EMAIL PROTECTED]> wrote:
>> Hi,
>>
>> I have a current application running on CFMX7, using
>> Application.cfm for the
>> login and other stuff.
>>
>> What I want to use is on sessionEnd I want to delete some
>> files on a
>> specific folder.
>>
>> I was thinking to use the Application.cfc, is there
>> anyway just to use the
>> application.cfc only for the sessionend function.
>>
>> I don't wanna mess with the other stuff for now, but I
>> can do if I really
>> need to do.
>>
>> What other way I can acheive this, just run a line of
>> code on SessionEnd.
>>
>> --
>> Regards,
>> Asim
>>
>>
>>

> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:235653
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to