• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1288
  • Last Modified:

Converting Application.cfm to Application.cfc

Hello Experts! I have tried to convert my Application.cfm to Application.cfc twice over the past few months but so many errors were generated and I was so busy building the rest of the site and teaching myself ColdFusion that I quickly reverted back to the cfm. I have had various session problems and different session behaviors between browsers. Also, I read that CF prefers a cfc so I'm hoping that converting will help clear up some of the last few issues. The next post will be my Application.cfm. Thanks in advance, Andy
0
Electriciansnet
Asked:
Electriciansnet
1 Solution
 
ElectriciansnetAuthor Commented:
NOTE: There is no login for main site. If you want to add or change anything to make site better, please do.
If you want to see how the site works you can visit me at http://www.electriciansnet.com.  Use 33617 as your model. you can also enroll with any pseudo data you like.
__________________________________________________________
Application.cfm

<!--- DEFINE YOUR APPLICATION, SET A 30 MINUTE TIMEOUT FOR SESSION --->
<cfapplication name="enetapps"
   sessionmanagement="Yes"
    sessiontimeout="#CreateTimeSpan(0,0,45,0)#">
      
      <!---THESE ATTRIBUTES WERE REMOVED AS PART OF AN EFFORT TO TROUBLESHOOT SESSION PROBLEMS--->
<!---loginstorage="yes" | setclientcookies="YES" | applicationtimeout "#CreateTimeSpan(0,1,0,0)#"  | setdomaincookies="No" | scriptprotect="No" | clientmanagement="yes"--->


<!---<request.DSN>--->
<cfset enet ="enetdb1sql">

<cfset root = "#ExpandPath(".")#">
<cfset iPath = "#root#\picts">
<cfset tPath = "#iPath#\temp">
<cfset logoPath = "#ipath#\member_logo">


<!--- TURN DEBUGGING ON AND OFF HERE (TRUE / FALSE) --->

<cfset session.debug = false>
<cfif session.debug eq true><br><br>

<cfdump var="#StructKeyList(Session)# " label="StructKeyList Session">
<cfdump var="#StructKeyList(Application)# " label="StructKeyList Application">
</cfif>
<!--- THE NEXT COUPLE OF LINES SEEMED TO DEFAULT EVERY PAGE TO THE ERROR PAGE SO IT WAS COMMENTED OUT --->
<!---<cfif NOT session.debug>
      <cferror type="exception" template="error.html">
</cfif>--->



 <!--- <cfset Session.file = file>--->
  <cfset session.form = form>
<!---PARAMS- Note to self: Use sparingly for queries only if necessary.--->
<cfparam  name="form.myCompany" default="">
<cfparam  name="form.myAddress" default="">
<cfparam  name="form.myCity" default="">
<cfparam  name="form.biCity" default="">
<cfparam  name="form.triCity" default="">
<cfparam  name="form.states_dropdown" default="0">
<cfparam  name="form.memberZC" default="">
<cfparam  name="form.thisCity" default="">
<cfparam  name="fCityToZip" default="">
<cfparam  name="session.myNewFile" default="">
<!---<cfparam  name="form.lat" default="">
<cfparam  name="form.lon" default="">--->

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now