| Developing ColdFusion Applications
|
|
Using the Application Framework
|
Using Server Variables
Server variables are associated with a single ColdFusion Server. They are available to all applications that run on the server. Use server variables for data that must be accessed across clients and applications.
Server variables do not time out, but are lost when the server shuts down. You cannot delete a Server variable. Therefore, you should limit the amount of data you store in Sever variables.
Server variables are stored on a single server. As a result, you should not use Server variables if you use ColdFusion on a server cluster.
ColdFusion provides the following standard read-only Server variables:
| Variable |
Description |
Server.ColdFusion.ProductName
|
The name of the product, that is, ColdFusion Server
|
Server.ColdFusion.ProductVersion
|
The version number for the server that is running, such as 5,0,0
|
Server.ColdFusion.ProductLevel
|
The server product level, such as Enterprise
|
Server.ColdFusion.SerialNumber
|
The serial number assigned to this server installation
|
Server.ColdFusion.Locales
|
The locales, such as English (US) and Spanish (Mexican), supported by the server
|
Server.OS.Name
|
The name of the operating system, such as Windows NT
|
Server.OS.AdditionalInformation
|
Additional information provided by the operating system, such as the Service Pack number
|
Server.OS.Version
|
The version number of the operating system, such as 4.0
|
Server.OS.BuildNumber
|
The specific operating system build, such as 1381
|
|
Copyright © 2001, Macromedia Inc. All rights reserved. |
|
|