Ok this is a bit weird.  I am playing with Application.cfc trying to figure out 
its peculiarities.  I saw in the CFML documentation an example of an output in 
the onApplicationStart function.  That seemed odd but I gave it a try.  It 
worked in that the string I outputted was sent to the browser, but the really 
weird part was that the string does not appear in the source!

Is there somewhere that might document this behavior?  Is it a bug or a 
feature?  If a feature, how would one use this in a legitimate manner?

<cfcomponent>
<!--- Initilize application variables and state. --->
<cfscript>
        this.name="AppCFC Testing";
        this.applicationTimeout = createTimeSpan(0,0,5,0);
        this.clientManagement = false;
        loginStorage = "Session";
        sessionManagement = true;
        sessionTimeout = createTimeSpan(0,0,2,0);
</cfscript>

<cffunction name="onApplicationStart">
<cfoutput>
This is where code that runs when the application starts goes.
</cfoutput>
</cffunction>

</cfcomponent>

I haven't tried this form other functions yet.

--------------
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA

---------
| 1 |   |
---------  Binary Soduko
|   |   |
---------
 
"C code. C code run. Run code run. Please!"
- Cynthia Dunning

Confidentiality Notice:  This message including any
attachments is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the
intended recipient, please contact the sender and
delete any copies of this message. 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:250224
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to