944,117 Members | Top Members by Rank

Ad:
  • ColdFusion Discussion Thread
  • Unsolved
  • Views: 6199
  • ColdFusion RSS
Jul 5th, 2005
0

session variable undefined in MX 6.1, works in CF 5

Expand Post »
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.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
nchandra is offline Offline
1 posts
since Jul 2005
Jul 6th, 2005
0

Re: session variable undefined in MX 6.1, works in CF 5

I just ran into a similar issue yesterday and it turned out to be a Mysql issue in one of my tables. It sounds like this could be different if you say it was working in cf 5 though.
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
bkendall is offline Offline
69 posts
since Jul 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ColdFusion Forum Timeline: Trouble with Coldfusion website
Next Thread in ColdFusion Forum Timeline: Renaming FTP upload





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC