Types Of ColdFusion Variables

Up until recently I had been using request.variablename for pretty much all my variables when coding in CFML. I’m not sure why I have always used the ‘request’ scope.

Then it dawned on my that maybe the ‘request’ scope should only be used for certain types of variables.

Thankfully a quick search on Google returned the following useful LiveDocs page that does a pretty good job of explaining the various type of ‘variable’ scopes. If this is something you’ve never really looked into then I highly recommend you do.

Using the correct variable scope will help improve your application’s performance.

No Comments

Sorry comments are closed for this entry.