Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- component extends='coldbox.system.Coldbox' {
- this.name = hash(getCurrentTemplatePath());
- this.sessionManagement = true;
- this.sessionTimeout = createTimeSpan(0, 0, 30, 0);
- this.setClientCookies = true;
- COLDBOX_APP_ROOT_PATH = getDirectoryFromPath(getCurrentTemplatePath());
- COLDBOX_APP_MAPPING = '';
- COLDBOX_CONFIG_FILE = '';
- COLDBOX_ALL_KEY = '';
- public boolean function onApplicationStart() {
- // Load ColdBox
- loadColdBox();
- // Confirm that the application has loaded.
- return True;
- }
- public boolean function onRequestStart(string targetPage) {
- // Carry out the reload checks.
- reloadChecks();
- // Ensure we only process a coldbox request.
- if (findNoCase('index.cfm', listLast(arguments.targetPage, '/'))) {
- // This is a coldbox request, process it.
- processColdBoxRequest();
- }
- // Confirm that the request has been processed.
- return True;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement