Highlighted

Setting/changing a date in application.cfm

Participant ,
Oct 14, 2014

Copy link to clipboard

Copied

I need to be able to set a date in the application.cfm file

for example

<CFSET APPLICATION.stopdate='10/15/2014'>

Then in my site on other pages I have code that says

<cfif reportdate GT #APPLICATION.stopdate#>Do This</cfif>

The problem is sometimes I need to change the APPLICATION.stopdate to another date during the middle of the day.

For example I need to change the APPLICATION.stopdate from 10/15/2014 to 10/25/2014

However I notice when I change the  APPLICATION.stopdate in the application.cfm to another date during the middle of the day that the APPLICATION.stopdate stays the old date.

How do I make sure that the APPLICATION.stopdate changes sitewide when I change it in the application.cfm?

Do I use another variable scope?

Views

133

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Setting/changing a date in application.cfm

Participant ,
Oct 14, 2014

Copy link to clipboard

Copied

I need to be able to set a date in the application.cfm file

for example

<CFSET APPLICATION.stopdate='10/15/2014'>

Then in my site on other pages I have code that says

<cfif reportdate GT #APPLICATION.stopdate#>Do This</cfif>

The problem is sometimes I need to change the APPLICATION.stopdate to another date during the middle of the day.

For example I need to change the APPLICATION.stopdate from 10/15/2014 to 10/25/2014

However I notice when I change the  APPLICATION.stopdate in the application.cfm to another date during the middle of the day that the APPLICATION.stopdate stays the old date.

How do I make sure that the APPLICATION.stopdate changes sitewide when I change it in the application.cfm?

Do I use another variable scope?

Views

134

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Oct 14, 2014 0

Have something to add?

Join the conversation