The server
scope can hold variables that exist, and are accessible to all applications on the server.
server.coldfusion
A struct containing several keys such as productversion
productname
rootdir
updatelevel
This is populated on both ACF and Lucee, productname
is Lucee
or ColdFusion
.
server.os
A struct containing info about the operating system:
server.os.name
- The OS Name, e.g. UNIX
Mac OS X
Windows
server.os.version
- The OS Versionserver.os.arch
- The CPU architecture, e.g. amd64
server.os.additionalinformation
- Additional OS info, e.g. 'Linux
server.system.environment
Lucee 5+ CF 2018+ A struct containing environment variables.
server.system.properties
Lucee 5+ CF 2018+ A struct containing Java system properties.
server.lucee
Lucee 4.5+ Info specific to Lucee, e.g. server.lucee.version
- useful for checking if you are running on Lucee:
if ( server.keyExists("lucee") ) {
//you are on Lucee
}
server.separator
Lucee 4.5+ a struct with keys file
line
and path
for OS specific/preferred separators.
Signup for cfbreak
to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.