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

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 " & ( ? : "unspecified") & "<br>");

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

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

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub