Greg,

If you haven't already solved your problem, I have a suggestion.

When you initialize your application variable, create another application
variable and set it's value to Now().  Then, use something like...

<cfif NOT IsDefined("application.yourVar") OR application.dateVar NEQ Now()>
        <cfset application.yourVar = yaddayadda>
        <cfset application.dateVar = Now()>
</cfif>

Courtney E. Payne, Developer
Fig Leaf Software
"We've got you covered"
[EMAIL PROTECTED]
www.figleaf.com 


-----Original Message-----
From: Greg Wolfinger [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 15, 2000 2:19 AM
To: CF-Talk
Subject: Application Timeout at Midnight


This is a multi-part message in MIME format.

------=_NextPart_000_0007_01C04EAA.65607140
Content-Type: text/plain;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hey Guys:

I have been using the CachedWithin() function to create a timeout for my =
application variables.  However, a client of mine will have a special =
number associated with billing that changes every day and I was =
wondering how to make the application variable that contains this number =
to timeout exactly at midnight.

Thanks,


Greg

------=_NextPart_000_0007_01C04EAA.65607140
Content-Type: text/html;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2614.3500" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hey Guys:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I have been using the CachedWithin() =
function to=20
create a timeout for my application variables.&nbsp; However, a client =
of mine=20
will have a special number associated with billing that changes every =
day and I=20
was wondering how to make the application variable that contains this =
number to=20
timeout exactly at midnight.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks,</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Greg</FONT></DIV></BODY></HTML>

------=_NextPart_000_0007_01C04EAA.65607140--

----------------------------------------------------------------------------
--------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a
message with 'unsubscribe' in the body to [EMAIL PROTECTED]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to