•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the ColdFusion section within the Web Development category of DaniWeb, a massive community of 391,864 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,613 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ColdFusion advertiser:
Views: 4344 | Replies: 1
![]() |
•
•
Join Date: Jul 2005
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
http://wsprod.colostate.edu/cwis116/...der/?clear=yes
This server has MX6.1 and session variable apppack is undefined.
The same code works on CF 5 server as in
http://admissionsinfo.colostate.edu/...der/?clear=yes
I have in the application.cfm file
<cfapplication name="Highschool Counselor Order" sessionmanagement="Yes" setclientcookies="Yes" sessiontimeout=#createtimespan(0,0,20,0)#>
And in contact.cfm have :-
<cfif form.submit EQ "Continue"><!--- Only get form vars from last page (ignore if backing up through prcess) --->
<cflock scope="SESSION" type="EXCLUSIVE" timeout="10">
<cfset session.sOrder = StructCopy(form)>
</cflock>
</cfif>
<cfdump var="#session.sOrder#">
In confirm.cfm session.sOrder.apppack is undefined ??
I am not using cflocation anywhere.
<!--- Main Resources Page --->
<!--- Clear session variables --->
<cfif isDefined('URL.clear') AND URL.clear EQ 'yes'>
<cfif isDefined('session.sOrder')>
<cfset junk = StructDelete(session,'sOrder')>
</cfif>
<cfif isDefined('session.sContact')>
<cfset junk = StructDelete(session,'sContact')>
</cfif>
</cfif>
<!--- If we stepped back from the contact form, save vars --->
<cfif isDefined('form.submit') AND FORM.SUBMIT eq "Back">
<cfset session.sContact = StructCopy(form)>
</cfif>
Index.cfm
<!--- Main Switch --->
<cfswitch expression="#hAct#">
<cfcase value="home">
<cfinclude template="dsp_main.cfm">
</cfcase>
<cfcase value="order_init">
<cfinclude template="dsp_contact.cfm">
</cfcase>
<cfcase value="order_2">
<cfif form.submit EQ 'Back'><!--- BACK --->
<cfinclude template="dsp_main.cfm">
<cfelse><!--- FORWARD --->
<cfinclude template="act_valid_contact.cfm">
<cfinclude template="dsp_confirm.cfm">
</cfif>
</cfcase>
</cfswitch>
Any suggestions? Thanks.
This server has MX6.1 and session variable apppack is undefined.
The same code works on CF 5 server as in
http://admissionsinfo.colostate.edu/...der/?clear=yes
I have in the application.cfm file
<cfapplication name="Highschool Counselor Order" sessionmanagement="Yes" setclientcookies="Yes" sessiontimeout=#createtimespan(0,0,20,0)#>
And in contact.cfm have :-
<cfif form.submit EQ "Continue"><!--- Only get form vars from last page (ignore if backing up through prcess) --->
<cflock scope="SESSION" type="EXCLUSIVE" timeout="10">
<cfset session.sOrder = StructCopy(form)>
</cflock>
</cfif>
<cfdump var="#session.sOrder#">
In confirm.cfm session.sOrder.apppack is undefined ??
I am not using cflocation anywhere.
<!--- Main Resources Page --->
<!--- Clear session variables --->
<cfif isDefined('URL.clear') AND URL.clear EQ 'yes'>
<cfif isDefined('session.sOrder')>
<cfset junk = StructDelete(session,'sOrder')>
</cfif>
<cfif isDefined('session.sContact')>
<cfset junk = StructDelete(session,'sContact')>
</cfif>
</cfif>
<!--- If we stepped back from the contact form, save vars --->
<cfif isDefined('form.submit') AND FORM.SUBMIT eq "Back">
<cfset session.sContact = StructCopy(form)>
</cfif>
Index.cfm
<!--- Main Switch --->
<cfswitch expression="#hAct#">
<cfcase value="home">
<cfinclude template="dsp_main.cfm">
</cfcase>
<cfcase value="order_init">
<cfinclude template="dsp_contact.cfm">
</cfcase>
<cfcase value="order_2">
<cfif form.submit EQ 'Back'><!--- BACK --->
<cfinclude template="dsp_main.cfm">
<cfelse><!--- FORWARD --->
<cfinclude template="act_valid_contact.cfm">
<cfinclude template="dsp_confirm.cfm">
</cfif>
</cfcase>
</cfswitch>
Any suggestions? Thanks.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb ColdFusion Marketplace
Similar Threads
- session variable error (PHP)
- Session Variable clashing (ASP.NET)
- Losing session variable problem...help! (ASP)
- Session variable (ASP.NET)
- session variable:again (ASP.NET)
Other Threads in the ColdFusion Forum
- Previous Thread: Trouble with Coldfusion website
- Next Thread: Renaming FTP upload


Linear Mode