At 05:50 PM 10/25/2005, Alan Rother wrote:

>  If so, what you need to do is simply run a check against this data, so that
>if right now is not within one of these date ranges you cannot access the
>area. Consider this to be a sort of security system much like you would use
>for a login area.


I also got a suggestion to set the values in the application.cfm page like 
this:

<CFSCRIPT>
    Application.startMonth = 1;
    Application.startDay = 5;
    Application.endMonth = 1;
    Application.endDay = 21;
</CFSCRIPT>

Now, since I have the values stored in a database anyway...what about 
performing the query in the application.cfm page and then putting those 
values within the CFSCRIPT tags? Would that run the query "each time" a 
page is called (thus creating an unnecessary load on the database), or 
would the query run only "the first time" a page within that folder (where 
application.cfm is) is called, not running again as long as the user stays 
within the contents of that folder (i.e., visiting other pages within that 
folder)?

Thanks,

Roberto Perez
[EMAIL PROTECTED]


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:222520
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to