uh oh - i didnt do something right?
on the page to be counted i put this:
<cfapplication name="surveyApp" sessionmanagement="yes">
<cflock name="surveyAppVars" timeout="3">
<cfif isdefined("session.visited"

>
<cfset application.uniqueVisitors = application.uniqueVisitors + 1>
<cfset session.visited = "yes">
</cfif>
<cfset application.count = application.count + 1>
</cflock>
and got this:
Error resolving parameter APPLICATION.COUNT
The application variable COUNT does not exist. The cause of this error is very likely one of the following things:
The name of the application variable has been misspelled.
The application variable has not yet been created.
The application variable has timed out.
The error occurred while evaluating the expression:
application.count = application.count + 1
The error occurred while processing an element with a general identifier of (CFSET), occupying document position (7:8) to (7:56).
and on the stats page I put this:
<cfapplication name="surveyApp" sessionmanagement="yes">
<cflock name="surveyAppVars" timeout="3">
<cfoutput> Unique Visitors: #application.uniqueVisitors#
<p> Page Hits: #application.count#
<hr>
<p>
</cfoutput>
</cflock>
and got this:
Error resolving parameter APPLICATION.UNIQUEVISITORS
The application variable UNIQUEVISITORS does not exist. The cause of this error is very likely one of the following things:
The name of the application variable has been misspelled.
The application variable has not yet been created.
The application variable has timed out.
The error occurred while evaluating the expression:
#application.uniqueVisitors#
The error occurred while processing an element with a general identifier of (#application.uniqueVisitors#), occupying document position (15:31) to (15:58).
Did i miss the idea?
