Manipulating Session Cookies In Application.cfc's Pseudo Constructor Triggers New Session Creation

<cfcomponent
	output="false"
	hint="I define the application settings and event handlers.">
 
	<!--- Define the application. --->
	<cfset this.name = hash( getCurrentTemplatePath() ) />
	<cfset this.applicationTimeout = createTimeSpan( 0, 0, 10, 0 ) />
	<cfset this.sessionManagement = true />
	<cfset this.sessionTimeout = createTimeSpan( 0, 0, 5, 0 ) />
 
	<!--- Define the page request. --->
	<cfsetting
		requesttimeout="5"
		showdebugoutput="false"
		/>
 
 
	<cffunction
		name="onSessionStart"
		access="public"
		returntype="void"
		output="false"
		hint="I initialize the session.">
 
		<!--- Set session values. --->
		<cfset session.dateInitialized = now() />
		<cfset session.views = 0 />
 
		<!--- Return out. --->
		<cfreturn />
	</cffunction>
 
</cfcomponent>

For Cut-and-Paste