This might be a question that can't doesn't have an answer I like, but I'd like to make sure I'm not missing any obvious options.

We have a very large coldfusion application built long ago that I would like to move over to an Application.cfc file. This page has a very complex application.cfm file which I thought I could pretty much copy into onRequestStart. Unfortunately the variables on this application.cfm are unscoped, so they don't reach the main pages. Also the pages that call these variables are also unscoped.

I thought by putting them in the request or variables scope on the app.cfc would fix it but apparently request isn't searched when looking for an unscoped variable, and the variables scope does not reach to the calling page,

The way I was able to work around it was putting all the code into onRequest, but then I found out that this breaks webservices and flash remoting. I really don't know where to go from here, and scoping the variables on over 2000 pages or so isn't really an option, am I forced to continue to use application.cfm? I've seen mentions of deleting the onrequest scope on webservice cfcs, but I don't particularly like that option either.

Thanks for any responses,
Kenton


----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to 
[email protected] with the words 'unsubscribe cfcdev' as the subject of the 
email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting 
(www.cfxhosting.com).

An archive of the CFCDev list is available at 
www.mail-archive.com/[email protected]


Reply via email to