Scope visibility
There are some places where variable scopes can be seen or used from other code pages, and others where they cannot. In this chapter, the creation and management of several aspects of these variables will be explained just by referring to the code. Scope just identifies and determines where something is visible. Each variable type listed in the following table has a specific range of code that can see the variable's structure for each of the scopes:
Variable scope |
Visibility (ability to interact with it) |
---|---|
Application |
To all ColdFusion code in this unique application while it persists. |
Request |
To all the ColdFusion code within the same request. |
Session |
To all the ColdFusion code in this unique application while the unique session persists and only to the connections that identify themselves to the server as that session. |
There are a few other scopes that are available. These include the client scope and the server scope. These are usually avoided, but may be of use...