Hi all,
 
I am in the process of writing a hit counter app in java, but in the
meantime, I have thrown a little something together in CF and wanted to
get some feedback on it.
 
I have a SQL Server backend to this site and what I do is in the
application.cfm page, I check for the existence of a variable called
session.visitor. If it exists, it means that the application already ran
the next part which is the code to look at the users IP and check for it
in a table in my DB... if there is a match it sets the variable
session.visitor again, and if no match is found it adds a record and
then sets the variable.
 
Is there anything wrong with the way I do this?...is there a more
efficient way?
Just so you know, I am unable to use cookies on this site.
 
Mike


______________________________________________________________________
Why Share?
  Dedicated Win 2000 Server · PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to