onApplicationStart Vs onRequestStart

2008-09-28 Thread Sherif Abdou
I am new to ColdFusion and I am having trouble understanding what is the Difference between onApplicationStart method and onRequestStart method other than the Scope. For Example what does it mean by Application? First time a user comes to your site? Does it only run once? I tried to set a

Re: onApplicationStart Vs onRequestStart

2008-09-28 Thread Will Tomlinson
I am new to ColdFusion and I am having trouble understanding what is the Difference between onApplicationStart method and onRequestStart method other than the Scope. For Example what does it mean by Application? First time a onapplicationstart() runs when the first cfm or cfc is executed in

Re: onApplicationStart Vs onRequestStart

2008-09-28 Thread Steve Nelson
OnApplicationStart runs the first time ANY user hits your site. It's commonly used for setting application variables that rarely change. Things like datasources are a good place for that or initializing a ton of cfobjects. I commonly put a cfif statement in my onRequest event to reset the

Re: onApplicationStart Vs onRequestStart

2008-09-28 Thread s. isaac dealey
I am new to ColdFusion and I am having trouble understanding what is the Difference between onApplicationStart method and onRequestStart method other than the Scope. For Example what does it mean by Application? First time a user comes to your site? Does it only run once? I tried to set a

Re: onApplicationStart Vs onRequestStart

2008-09-28 Thread Sherif Abdou
http://VadexFX.com http://Sherifabdou.com - Original Message - From: s. isaac dealey [EMAIL PROTECTED] To: cf-talk cf-talk@houseoffusion.com Sent: Sunday, September 28, 2008 8:42 PM Subject: Re: onApplicationStart Vs onRequestStart I am new to ColdFusion and I am having trouble

Re: onApplicationStart Vs onRequestStart

2008-09-28 Thread James Holmes
The whole point of putting variables into the application scope is to cache them so you don't have to set them on every request. The reason your variables didn't get set after you added new ones was that your application had already started; OnApplicationStart doesn't run on every request.