Excellent Mike - thanks - that did it first time around. Jay Mike Randolph wrote: > Hello, > > Found this in google...don't know if it will work? > > <cfscript> > StructClear(session); > <cfscript> > > cheers > Mike > > At 02:27 AM 6/5/2003 -0400, you wrote: > >>Hello Everyone.. >>I am having a bit of trouble with purging some session variables... >> >>I have in the application.cfm an application(obviously) that is set to >>hang on to the session for 20 minutes.... >> >>BUT if someone finishes a certain step on the form.. I want to write a >>few into a cookie and loop through and purge them... >> >>I decided that I can just overwrite them - set them to "" using >>something like this... >><cfcookie name="LitReq1a" value="#session.fname#, #session.lname#, >>#session.company#, #session.email#" expires="NEVER"> >> <CFLOOP COLLECTION="#session#" ITEM="ThisKey"> >> <CFOUTPUT><cfset session.ThisKey=""> >> cfset session.#ThisKey#=""<br></CFOUTPUT> >> </CFLOOP> >> >>While it outputs >><snip> >>cfset session.CFTOKEN="" >>cfset session.COMMENTS="" >>cfset session.COMPANY="" >>cfset session.CONTACTBY="" >>cfset session.EMAIL="" >>etc etc etc >></snip> >> >>I go visit the first page of my form and the vars do indeed still exist. >>What is the right way to purge these session vars ??? >> >>My application code is as such... >><cfapplication name="LitReq" >> setclientcookies="Yes" >> sessionmanagement="Yes" >> sessiontimeout="#createTimeSpan(0,0,20,0)#"> >> >>hope this was clear.. Thanks in advance! >>jay >> >> >> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

