Cold Fusion site with what I think is a cookie or version error

A Talent Agency called me panicing about a site I did not build… a Cold Fusion site; it was built in “who knows what version” and running in a CF8 envirnment. This talent agency has talent scouts look at their models, click a SAVE MODEL button and then submit their choices to the talent agent. The SAVE MODEL button is producing the following error:

The following information is meant for the website developer for debugging purposes.
Error Occurred While Processing Request
Element CFID is undefined in SESSION.
Resources:
Enable Robust Exception Information to provide greater detail about the source of errors.

I work in PHP so this little bug is eating up my time so I thought I might put it under a Sitepoint microscope.
The suspected page code is below. Anyone see any glaring errors?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
	<title>Untitled</title>
</head>

<body>


<cfif session.cfid eq "">
	<cfset session.session_id = #randrange(1111111,999999)#>
<cfelse>
    <cfset session.session_id = #session.cfid#>
</cfif>

<cfquery name="q1" datasource="#application.rsds#" username="#application.rsuser#" password="#application.rspwd#">
  select * from cookies_details where model_id = #model_id# and session_id = '#session.session_id#'
</cfquery>

<cfif q1.recordcount eq 0>
<cfquery name="q2" datasource="#application.rsds#" username="#application.rsuser#" password="#application.rspwd#">
  insert into cookies_details values(#model_id#,'#session.session_id#','#dateformat(now(),"mm/dd/yyyy")#','#timeformat(now(),"hh:mm:sstt")#')
</cfquery>
</cfif>
<cflocation url="savedmodels.cfm" addtoken="No">

</body>
</html>

Thanks in advance.

This issue is solved by a server setting in the CF Admin Memory Variables… It seems the host had a check mark on the “Use J2EE Session Variables”. For a better explaination see http://www.wadecantley.com/2012/05/element-cfid-is-undefined-in-session.cfm.

Greg