> Does anyone have suggestion on a method to drop a cookie on the 
> homepage of a site and then track that cookie to figure who is a 
> new user vs. returning user.

<!-- home page code -->
<cfif isdefined("cookie.firstvisit")>
        <!-- user has been here before -->
<cfelse>
        <!-- user is visiting for the first time, or has cookies disabled -->
        <cfcookie name="firstvisit" value="#now()#">
</cfif>


- Sean
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to