In order to use session variables, CF has to keep track of who is whom. Therefore, it sets two cookies without you knowing it (assuming you've enabled session or client variables): CFID and CFTOKEN. Therefore, if you don't want to use cookies, you have to explicitly disable them in the CFAPPLICATION tag.
For more information, check out the Client Variables section of the Developing Web Applications with ColdFusion book (part of the documentation, online if you don't have a hardcopy). There are ways to do session/client tracking without cookies, but you have to manually pass the CFID/CFTOKEN combo in URLs or forms between pages. If you forget even one link or form, the session dies and the user gets a new one. I'm sure there are MANY great presentations floating around with more details on how to do this. If you can't find one, I've got one stashed away someplace. Good luck Norman Elton -----Original Message----- From: Peter Tilbrook [mailto:[EMAIL PROTECTED]] Sent: Sunday, January 27, 2002 10:45 PM To: CF-Talk Subject: Re: CF and Hit Counter Why is that? All you need to do is setup a datasource in the ColdFusion Administrator and set it as the default storage mechanism for client variables. CF takes ca re of the rest. ----- Original Message ----- From: "Norman Elton" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Monday, January 28, 2002 12:50 PM Subject: RE: CF and Hit Counter > So long as you realize that session variables typically rely on > cookies (you'd have to use the SetClientCookies=no attribute of > CFApplication - > I believe that's what it's called). By default, ColdFusion handles > this without you knowing it. There are techniques to use > session/client variables without cookies, but it's not as easy! > > Norman Elton > College of William & Mary > > -----Original Message----- > From: Michael T. Tangorre [mailto:[EMAIL PROTECTED]] > Sent: Sunday, January 27, 2002 8:35 PM > To: CF-Talk > Subject: CF and Hit Counter > > > 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 > ra n > the next part which is the code to look at the users IP and check for > i t > 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/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

