House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  ColdFusion Talk (CF-Talk)

Why did this suddenly break>

  << Previous Post |  RSS |  Subscribe to this Group Next >> 

Why did this suddenly break>

Hi all, Mark Leder 06/03/2004 09:40 AM

06/03/2004 09:40 AM
Author: Mark Leder Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:32958#165361 Hi all, Using MX6.1 Win 2003 server, J2EEsessionvars enabled. I have a shopping cart, when someone initially goes to the checkout page (to enter first name, last name, etc), a session.ecom structure is created containing empty strings.  However, the past few days, the cart acts like it can't find the session.ecom structure, thus throwing errors (can't find the structure) (and I haven't changed any code). I've tried restarting CF at the server.  I've used this code for some time without problem until now. When I remove the IsDefined statement, and rerun the checkout page, the cart works normally. What am I doing wrong? ========================== <cflock name="#REQUEST.prefix##SESSION.SessionID#" timeout="10" type="exclusive"> <cfif NOT IsDefined("SESSION.ecom")> <cfscript> SESSION.ecom = StructNew(); // We will collect these from user; start blank // Personal Information SESSION.ecom.IPAddressNo = "#CGI.REMOTE_ADDR#"; SESSION.ecom.UserAgent = "#CGI.HTTP_USER_AGENT#"; SESSION.ecom.FirstName  = ""; SESSION.ecom.MiddleName   = ""; SESSION.ecom.LastName  = ""; SESSION.ecom.surName = ""; </cfscript> </cfif> </cflock> Thanks, Mark
<< Previous Thread Today's Threads Next Thread >>

Search cf-talk

May 24, 2012

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
     1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31     

Designer, Developer and mobile workflow conference