You could do a DATEDIFF by creating a variable to hold the time the app var was created, and comparing this each time you went through app_globals. If the diff is greater than what you specify, destroy the var. > -----Original Message----- > From: Ficke, Bill [SMTP:[EMAIL PROTECTED]] > Sent: Tuesday, March 27, 2001 9:13 AM > To: Fusebox > Subject: OT: Setting individual timeouts for application variables > > Does anyone have a methodology for setting specific timeouts for different > variables? I would like to set a timeout specifically for 1 application > variable without affecting the timeouts for app variables specified in > <CFAPPLICATION>. > > What I'm really trying to accomplish is test the availability of our ASP's > server using CFHTTP. In my app, then I communicate to each user upon > login > that their services are available or not. The code is very expensive if > executed for each user every time they login. So I would like to execute > the availability test periodically, thus setting an application-like > variable which each client request at login could read. The app variable > would need to automatically die/refresh after 5 minutes. > > Hope this makes sense. I look forward to the experts input on my > quandary. > > Thanks, > Bill Ficke > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
