root/coldbox/trunk/samples/applications/blogcfcv5_0/Application.cfc @ 860

Revision 860, 1.4 kB (checked in by lmajano, 6 years ago)

Whitespace fixes, (INCREDIBLE FIX)

Line 
1<cfcomponent output="false">            
2<!--- Edit this line if you are not using a default blog --->
3<cfset blogname = "default">
4<!--- The prefix is now dynamic in case 2 people want to run blog.cfc on the same machine. Normally they
5          would run both blogs with the same org, and use different names, but on an ISP that may not be possible.
6          So I base part of the application name on the file path.
7         
8        Name can only be 64 max. So we will take right most part.
9--->
10<cfset prefix = getCurrentTemplatePath()>
11<cfset prefix = reReplace(prefix, "[^a-zA-Z]","","all")>
12<cfset prefix = right(prefix, 64 - len("_blog_#blogname#"))>
13               
14<cfset this.name = "#prefix#_blog_#blogname#">
15<cfset this.sessionManagement = true> 
16<cfset this.sessionTimeout = createTimeSpan(0,0,30,0)> 
17<cfset this.setClientCookies = true>
18<cfset this.loginStorage = "session">
19               
20<cffunction name="onApplicationStart" returnType="boolean" output="false"> 
21        <cfreturn true>
22</cffunction>
23
24<cffunction name="onApplicationEnd" returnType="void" output="false"> 
25        <cfargument name="applicationScope" required="true">
26</cffunction>
27       
28<cffunction name="onSessionStart" returnType="void" output="false"> 
29</cffunction>
30
31<cffunction name="onSessionEnd" returnType="void" output="false"> 
32        <cfargument name="sessionScope" type="struct" required="true">
33        <cfargument name="appScope" type="struct" required="false">
34</cffunction>
35 
36 
37</cfcomponent>
Note: See TracBrowser for help on using the browser.