Your application.cfm is loaded on every refresh so the variable is set to
zero every time.
You should put it in a persistant scope and check for it's existance:

<cif not isdefined("application.child")>
<cfset application.child = 0>
</cfif>

and

<cfset application.child = application.child + 1>

----- Original Message -----
From: "FlashGuy" <[EMAIL PROTECTED]>
> I have the following in my application.cfm file
> <cfset child = 0>
> In my index.cfm file I have the following.
> <cfset child=child + 1>
> Everytime I refresh the page manually or by using an <a href within mu
file to reload mu index.cfm it doesn't increment?


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.

Reply via email to