Bill,
Don't reinvent the wheel - 
The CFID and CFTOKEN exist to make a unique Identifyer, You can use them
over a long span of time by enableing Client Management inside the
<cfapplication> best placed on the application.cfm template. This sets the
needed cookies and makes a coorispondnig DB entry (provided you set up
client vars to be stored in a db and not in the registry)

The only way to tell if a user is returning is via a cookie - if one doesnt
exist a logo in of some sort and associate them to the correct records, and
reset the needed cookie...

HTH


-----Original Message-----
From: Bill Killillay [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 31, 2000 12:31 AM
To: [EMAIL PROTECTED]
Subject: Unique ID's


What is the best way based on experience to create, store and retrieve a
unique ID?

The method I have been using requires the setting of a cookie, then checking
for it when the user comes back.  Is this the best way, also what's the best
type of information to store in that cookie.  Some sort of CFID & CFTOKEN,
or should I come up with some other method.  I don't mind storing the
information in a Database table also, and the idea is to then be able to use
it as sort of a unique key for returning visitors/users.  I trigger all of
this with the Application.cfm right now, is that also the best or should I
do it somewhere else, like a CFINCLUDE into the Application.cfm

TIA!

Bill Killillay
ICQ @ 8425781

*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*
"An investment in Knowledge always pays the best interest."
               -Benjamin Franklin-
*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*

Get Paid to Surf the Web.  It's free, easy and fun.
Sign up for AllAdvantage.com at

http://alladvantage.com/go.asp?refid=FIB-034

Most of us are on it every day all day anyway, why not pay give
yourself a pay raise for 25 hours a month.

----------------------------------------------------------------------------
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to