OK...then something is really weird in my code then. I have to look at it closer.
Thanks On Tue, 24 Jun 2003 11:04:51 -0400, Bryan F. Hogan wrote: > Bushy CF automatically closes all scopes with the exception of the Cookie, > Application, and Session scopes. There is no need to close > GetAccess.strAccess on window close. CF does this for you. > > -----Original Message----- > From: Bushy [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 24, 2003 10:55 AM > To: CF-Talk > Subject: Clearing variable > > > Hi, > > I'm checking my database field "strAccess" for the text "no". If I find it > do this otherwise do that...balh...blah...blah... > > I need to clear/delete this variable everytime I close the app. > > This is what I'm doing... > > <cfquery name='GetAccess" datasource="database"> > SELECT strUsername,strAccess > FROM table > WHERE strUsername = 'myname' > </cfquery> > > <cfif GetAccess.strAccess IS 'no'> > ...run some JS that closes the parent window > > ...clear above variable. > > Will this do the trick? > > <cfscript> > StructDelete(SESSION, "strAccess"); > </cfscript> > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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 This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.cfhosting.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

