My coworker has a couple of times brought up the fact that in some places I 
reset a variable without deleting it.  For example, if when looking at a 
user's session variable, if I find it to be out of date I reset by
<CFSET session = StructNew()>

Or if I just need to reset their basket contents I use:
StructInsert(session,"basket",ArrayNew(1));

Instead, he would use:
StructDelete(session,"basket");
StructInsert(session,"basket",ArrayNew(1));

Is there any problems with the way I'm doing it? He is concerned that it 
may leave some stuff out in memory.

Thanks,
-Ryan
______________________________________________________________________
Dedicated Windows 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=coldfusiona
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

Reply via email to