-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApplication.cfc_
47 lines (30 loc) · 931 Bytes
/
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
44
45
46
47
component
{
// Removing the trailing understore in the filename if you want these scripts to run outside of a target WEB-INF
// eg sessioncount_external.cfm
this.name = "status-check";
this.applicationTimeout = createTimeSpan(0,2,0,0);
this.sessionManagement = true;
this.setClientCookies = true;
this.clientManagement = false;
this.scriptProtect = "cgi,cookies,url";
public boolean function onApplicationStart()
{
return true;
}
public void function onApplicationEnd(required struct applicationScope)
{}
public void function onError(required any exception, required string eventName)
{}
public boolean function onRequestStart(required string targetPage)
{
setLocale("English (Australian)");
return true;
}
public void function onRequestEnd()
{}
public void function onSessionEnd(required struct sessionScope, struct applicationScope={})
{}
public void function onSessionStart()
{}
}