Understanding APPLICATION and SERVER VariablesThis chapter discusses both APPLICATION and SERVER variables. Both types of variables are very important to maintaining state on a server.
State maintenance was briefly mentioned in Chapter 8, "URL Variables." Using these variables, you can remember things on a Web site over multiple pages and multiple applications because they are stored in memory on the ColdFusion server. APPLICATION variables can be set for one application on a server. By doing so, you can create variables that are universal to an entire application (but that cannot be used by other applications). SERVER variables are set for the entire server and are available to every application on that server. You can add to the server scope or use variables that are already available in the scope.
Some default variables that are available in the server scope are listed in Table 10.1, later in this chapter.
|