With CF5.0, I'm trying to count 'unique' visitors to our site and how many
pages each visitor views, with this code in Application.cfm. This works
except that logSW does not reset when the visitor closes his browser; only
when the time span expires. How do I determine/force when a session ends? Or
is there a totally different approach?
<cfapplication
name="ResourceGuide"
sessionmanagement="YES"
sessiontimeout="#CreateTimeSpan(0,0,45,0)#"
>
<cfif NOT isDefined('session.logSW')>
<cfset session.logSW = 1>
<cfset type="VISITOR">
<cfelse>
<cfset type="PAGE VIEW">
</cfif>
TIA
Dave
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

