-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathApplication.cfc
More file actions
38 lines (31 loc) · 985 Bytes
/
Application.cfc
File metadata and controls
38 lines (31 loc) · 985 Bytes
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
<cfcomponent displayname="Application" output="false">
<cfscript>
this.name = "SalesForce";
this.clientmanagement = "false";
this.sessionmanagement = "true";
this.applicationtimeout = CreateTimeSpan(1,0,0,0);
this.sessiontimeout = CreateTimeSpan(0,0,30,0);
this.setclientcookies = "false";
</cfscript>
<!--- on Application Start --->
<cffunction name="onApplicationStart">
</cffunction>
<!--- on Session Start --->
<cffunction name="onSessionStart">
</cffunction>
<!--- on Session End --->
<cffunction name="onSessionEnd">
</cffunction>
<!--- on Request Start --->
<cffunction name="onRequestStart">
<cfif structKeyExists(url,'reinit')>
<cfobjectcache action="clear" />
<cfset structClear(application) />
<cfset structClear(session) />
<cfset this.onApplicationStart() />
</cfif>
</cffunction>
<!--- on Request End --->
<cffunction name="onRequestEnd">
</cffunction>
</cfcomponent>