-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathApplication.cfc
43 lines (37 loc) · 1.45 KB
/
Application.cfc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/**
********************************************************************************
Copyright 2005-2007 ColdBox Framework by Luis Majano and Ortus Solutions, Corp
www.coldbox.org | www.luismajano.com | www.ortussolutions.com
********************************************************************************
Author : Luis Majano
Description :
This is the bootstrapper Application.cfc for ColdBox Applications.
It uses inheritance on the CFC, so if you do not want inheritance
then use the Application_noinheritance.cfc instead.
**/
component extends="coldbox.system.mvc.Bootstrap"{
// Application Properties
this.name = hash( getCurrentTemplatePath() );
this.sessionManagement = true;
this.sessionTimeout = createTimeSpan(0,0,30,0);
this.setClientCookies = true;
// COLDBOX STATIC PROPERTY, DO NOT CHANGE UNLESS THIS IS NOT THE ROOT OF YOUR COLDBOX APP
COLDBOX_APP_ROOT_PATH = getDirectoryFromPath( getCurrentTemplatePath() );
// The web server mapping to this application. Used for remote purposes or static purposes
COLDBOX_APP_MAPPING = "";
// COLDBOX PROPERTIES
COLDBOX_CONFIG_FILE = "";
// COLDBOX APPLICATION KEY OVERRIDE
COLDBOX_APP_KEY = "";
boolean function onRequestStart(required targetPage){
// Process A ColdBox Request Only
if( findNoCase('index.cfm', listLast(arguments.targetPage, '/')) ){
// Reload Checks
reloadChecks();
// Process Request
processColdBoxRequest();
}
// WHATEVER YOU WANT BELOW
return true;
}
}