Hello,

I'd like to be able to test for the existence of a cookie so that I can use
CFLOCATION if the cookie is set.

The problem is the code <cfif IsDefined(Cookie.CartID)> is throwing up an
error

The code I'd like to use is something like:

.... code here that writes a cookie .....
<CFIF IsDefined("Cookie.CartID")>
   <CFLOCATION
url="index.cfm?FUSEACTION=itemcatlist&CatID=#ATTRIBUTES.CatID#">
  <CFELSE>
   <H2>Your order is being added to your shopping cart.</h2>
   <CFHEADER NAME="Refresh" VALUE="1;
URL=index.cfm?fuseaction=itemcatlist&CatID=#ATTRIBUTES.CatID#">
   <CFABORT>
  </CFIF>

Anyone able to help.

Thanks
Ben



------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to