Unique Identifier for Online Application
Posted on 2007-08-06
I am writing an online application where I need to make sure everyone applying gets a unique identifier. Right now I am using the date and time but I am not comfortable with it. Right now two people could potentially grab the same number.
I've read where people recommend ID & Token, but do not know how to implement. Could someone give me some simple logic for this? Thanks for helping. I am using CF7.
What I am using now:
<cfset todaydate = DateFormat(now(), "yyyymmdd")>
<cfset todaytime = TimeFormat(now(), "hhmmss")>
<cfset UniqueNO = '#todaydate##todaytime#'>