application.cfc site variables
I switched over to using application.cfc not too long ago. One thing I have struggled with is how to set variables that I use on individual pages of my site like I used to do in application.cfm. I have some passowrds for sftp services etc that I used to set in application.cfm. I have not been able to figure out how to make them work with application.cfc so I can call them where I need to.
I have tried setting them in onrequeststart, onapplicationstart etc. but nothing seems to work. The variables are never defined.
Does anyone have a working example of how to set variables that can be used on your site globally?
Is there a better way to store account passwords and variables like that that I am missing?
