[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Converting Application.cfm to Application.cfc

Posted on 2007-10-07
1
Medium Priority
?
1,283 Views
Last Modified: 2013-12-20
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
Comment
Question by:Electriciansnet
1 Comment
 

Accepted Solution

by:
Electriciansnet earned 0 total points
ID: 20030896
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

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What You Need to Know when Searching for a Webhost Provider
The first step to building an amazing About page is to figure out what you want the page to say about your company. You then must grab the attention of the reader, boast a bit, tell a story and let others brag about you. With a little bit of thought…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Wufoo.com provides powerful tools for surveying targeted groups, and utilizing data from completed surveys to find trends, discover areas of demand or customer expectation, and make business decisions on products or services.
Suggested Courses
Course of the Month18 days, 10 hours left to enroll

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question