Maintaining Sessions Across Multiple ColdFusion CFHttp Requests

<!--- Param the session hit count. --->
<cfparam
	name="SESSION.HitCount"
	type="numeric"
	default="0"
	/>
 
 
<!---
	Add one to the hit count. This session is very simple.
	We are using this purely to see if the hit count goes
	up from page to page indicating that the session has held.
--->
<cfset SESSION.HitCount = (SESSION.HitCount + 1) />
 
<!--- Set the return value. --->
<cfset strOutput = ("Hit Count: " & SESSION.HitCount) />
 
 
<!---
	Return the hit count. We are returning it via the
	CFContent tag so that we can stream it to the browser
	without ever using the CFOutput tags.
--->
<cfcontent
	type="text/html"
	variable="#ToBinary( ToBase64( strOutput ) )#"
	/>

For Cut-and-Paste