Questions tagged [application.cfm]
35 questions
6
votes
1 answer
ColdFusion: Are there any use cases where an Application.cfm is preferable to an Application.cfc
I'm in the process of upgrading a large legacy ColdFusion application that heavily utilizes Application.cfm template files instead of the newer Application.cfc files.
It seems that Application.cfc offer a cleaner more efficient solution to…

Hedge7707
- 557
- 1
- 5
- 17
4
votes
1 answer
Application scoped variables are getting refreshed for each requests
We've migrated a ColdFusion application from ColdFusion 10 to ColdFusion 2016. After Migration, Application variables are not staying in its scope, it is refreshing on each and every request.
Consider the following…

Rajesh Manilal
- 1,104
- 9
- 20
4
votes
3 answers
How to disable sameformfieldsasarray in ColdFusion 10?
How can you disable the sameformfieldsasarray when you have an Application.cfm file?
I'm porting a legacy application from ColdFusion 9 to ColdFusion 10. The site uses an old school Application.cfm file.
I see that 10 added a new setting…

Joe Zack
- 3,268
- 2
- 31
- 37
3
votes
4 answers
coldfusion application.cfm and affected files
If I have a site where there is a protected back end and I'm looking to use an application.cfm file, how can I tell which pages use the application filesa and which ones do…

Daniel
- 34,125
- 17
- 102
- 150
3
votes
2 answers
Application.cfm missing Session variables after 301 redirect
Running ColdFusion 7.
The Application.cfm loops all session variables into request.session
The OnRequestEnd.cfm loops all request.session values back into session
It does this so it only needs to lock the scope once when writing the variables in a…

Daniel Cook
- 1,033
- 1
- 9
- 19
2
votes
2 answers
Accessing Coldfusion session variables from one application.cfm to another
I have a login function that authorizes against a remote database over xml webservice. Upon successful login, I set a bunch of session variables for the logged-in user that follow them around the site (members only content, etc). This all works…

daltec
- 447
- 1
- 5
- 15
2
votes
1 answer
Coldfusion Application.cfc & Application.cfm in the same folder
I am modifying an existing web application which has been coded in Coldfusion. In the existing code, a large portion of the folders contain an Application.cfm file which sets the Application variables
However, part of my modification to these apps…

Señor Reginold Francis
- 16,318
- 16
- 57
- 73
2
votes
1 answer
Losing session variables between two pages
This is a weird one. I've recently moved the site to shared hosting on CF11 (I believe), so I don't know if that has anything to do with this. It wasn't happening before.
I'm still using application.cfm (not cfc) and it currently looks like…

user460114
- 1,848
- 3
- 31
- 54
2
votes
3 answers
Application.cfc vs Application.cfm which has more priority in different folders
In my application root folder, I have an Application.cfc file. In a subfolder, there is an Application.cfm. When I call a script in the subfolder which Application file executes: Application.cfc or Application.cfm?

Pavan Reddy
- 173
- 1
- 3
- 11
2
votes
2 answers
Application.cfm not run in ColdFusion app
I've got 2 ColdFusion apps built with a similar layout. They were built about the same time. I've recently upgraded my local server to ColdFusion 9. They both work fine locally but when I visit them through my IP one doesn't run the application.cfm.…

Ross
- 362
- 1
- 4
- 21
2
votes
2 answers
ColdFusion: is a second application.cfm necessary for a secured subdirectory within an authenticated site?
I have an authenticated website that has a subdirectory with stronger access requirements. Anyone can register for the main website, but only site administrators can log into the subdirectory. Currently, both the main site and subdirectory each have…

Mike Zavarello
- 3,514
- 4
- 29
- 43
2
votes
1 answer
Using urlencode in application.cfm to detect XSS in url ColdFusion
I inherited some legacy ColdFusion code and about a year ago my site was hit with XSS and SQL injection.
Which cause me to validate inputs coming in as well as including a setting of ScriptProtect="all" in my application.cfm file. I got it scan and…

user3067236
- 21
- 1
2
votes
2 answers
Coldfusion using onRequestEnd() with Application.cfm files
I'm working in a legacy app that was built upon the use of Application.cfm files rather than Application.cfc files.
There is a need to be able to run code after a request has processed. (Basically, I am wanting to use the tag to inject…

jzimmerman2011
- 1,806
- 2
- 24
- 37
2
votes
2 answers
Switch between mail servers in Application.cfm
We use coldfusion 9, and have sending limits with our individual SMTP accounts that our site uses to send email. I want to alternate between two servers depending on what time of day it is.

Kyle Macey
- 8,074
- 2
- 38
- 78
1
vote
1 answer
Coldfusion - Method not found in component after restarting services
I keep encountering a "The method was not found in component" error upon restarting CF services. Upon stopping and starting again this method will then be fine.
The method not found happens to be the most recently added function to a CFC that has…

AShoes
- 23
- 6