Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CFSET id 1

Status
Not open for further replies.

fusionaire

Programmer
May 20, 2000
67
US
&lt;!-- APPLICATION VARIABLES --&gt;<br>&lt;cfset TempNum=&quot;#TimeFormat(Now())#&quot;&gt;<br> <br>&lt;cfif not isdefined(&quot;session.CID&quot;)&gt;<br>&lt;cfset session.CID = #DateFormat(Now(), &quot;YYYYMMDD&quot;)# & &quot;&quot; &<br>#NumberFormat(TempNum, &quot;00000000&quot;)#&gt;<br>&lt;CFELSE&gt;<br>&lt;CFIF session.CID IS &quot;0&quot;&gt;<br>&lt;cfset session.CID = #DateFormat(Now(), &quot;YYYYMMDD&quot;)# & &quot;&quot; &<br>#NumberFormat(TempNum, &quot;00000000&quot;)#&gt;<br>&lt;/CFIF&gt;<br>&lt;/cfif&gt;<br><br>This is the code that I am using, but again, I keep on getting repeat numbers. Do I need to clear the stucture(Session.CID) at somepoint upon completion of ordering?<br><br>
 
Yep.&nbsp;&nbsp;Just set Session.CID to 0 at when you're done with it....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top