getApplicationMetadata

Returns the application settings that you have specified in the application, either in the Application.cfc or Application.cfm. Contains application settings such as name, sessionManagement, or invokeImplicitAccessor.

getApplicationMetadata() → returns struct

Examples sample code invoking the getApplicationMetadata function

Prints the statements using application meta data.

// Fetch application meta data
data = getApplicationMetadata();

// Print application name
writeOutput("Application name is " & (data.name.length() ? data.name : "unspecified") & "<br>");

// Print session timeout
writeOutput("Session timeout is " & data.sessionTimeout & "<br>");

// Print session management
writeOutput("Session management is " & (data.sessionManagement ? "enabled" : "disabled"));

Fork me on GitHub