-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApplication.cfc
43 lines (27 loc) · 1.01 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
<cfcomponent output="false">
<cfscript>
this.name = "farcrytomura";
this.applicationTimeout = createTimeSpan(0,2,0,0);
this.sessionManagement = true;
this.sessionTimeout = createTimeSpan(0,0,20,0);
this.setClientCookies = true;
this.scriptProtect = "all";
</cfscript>
<cffunction name="onApplicationStart" returnType="boolean" output="false">
<cfreturn true>
</cffunction>
<cffunction name="onError" returnType="void" output="false">
<cfargument name="exception" required="true">
<cfargument name="eventname" type="string" required="true">
<!--- Fixes cflocation bug which calls onError() in CF8.0 --->
<cfif structKeyExists(arguments.exception, "type") AND arguments.exception.type EQ "coldfusion.runtime.AbortException">
<cfreturn>
</cfif>
<cfdump var="#arguments#">
<cfabort>
</cffunction>
<cffunction name="onRequestStart" returnType="boolean" output="false">
<cfargument name="thePage" type="string" required="true">
<cfreturn true>
</cffunction>
</cfcomponent>