--------------0307E32963F2DF4A550BB08B
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi all,

Here's another case of the disappearing cookie. I set a cookie, the customer clicks on 
an order link, which takes them to another server, where they complete the 
transaction, then
click on a link to return to the original site (to a different page). There aren't any 
more than 2 or 3 cookies set during the whole session, and I know that cookies are 
turned on
because the server where they complete the transaction *requires* them to be enabled 
or the transaction won't be completed.  Just to be sure it's being set, I turned on 
the cookie
notification. Sure enough it gets set, but it gets lost somewhere along the way. (I'm 
doing all of this to validate the order was placed on the original server, if there's 
a better
way, please let me know.) Here's the code:

on order page:

<CFSET formid = #Round((#Second(Now ())# + #Year(Now ())# * 149623)* #Rand()#)# >
<CFSET altid = #Round((#Second(Now ())# + #Year(Now ())# * 39403847)* #Rand()#)# >

<cfoutput><cfcookie name="altid" value="#altid#"></cfoutput>

<CFOUTPUT>

    <FORM NAME="form#Int(formid)#" 
ACTION=http://clickbank.net/sell.cgi?link=ucenet/1/Atlantis&seed=#altid# METHOD="POST">
         <INPUT TYPE="Hidden" NAME="formid" VALUE="#formid#">
    </FORM>

    <A HREF="Javascript:document.form#Int(formid)#.submit()">Click here</font></A>
</CFOUTPUT>
<font face="Verdana">
to order online by credit card (Visa, Mastercard, Discover, American Express, 
Eurocard, Visa Debit, and Novus cards).

And on the receiving end:

 <cfif #parameterexists(cookie.altid)#>
        <cfif #cookie.altid# EQ #seed#>

                Purchase validated, give them what they paid for...
        <cfelse>
                Problem with order...
        </cfif>
<cfelse>
                Problem with order...
</cfif>

Thanks everybody!

sharon



--------------0307E32963F2DF4A550BB08B
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Hi all,
<p>Here's another case of the disappearing cookie. I set a cookie, the
customer clicks on an order link, which takes them to another server, where
they complete the transaction, then click on a link to return to the original
site (to a different page). There aren't any more than 2 or 3 cookies set
during the whole session, and I know that cookies are turned on because
the server where they complete the transaction *requires* them to be enabled
or the transaction won't be completed.&nbsp; Just to be sure it's being
set, I turned on the cookie notification. Sure enough it gets set, but
it gets lost somewhere along the way. (I'm doing all of this to validate
the order was placed on the original server, if there's a better way, please
let me know.) Here's the code:
<p>on order page:
<p>&lt;CFSET formid = #Round((#Second(Now ())# + #Year(Now ())# * 149623)*
#Rand()#)# >
<br>&lt;CFSET altid = #Round((#Second(Now ())# + #Year(Now ())# * 39403847)*
#Rand()#)# >
<p>&lt;cfoutput>&lt;cfcookie name="altid" value="#altid#">&lt;/cfoutput>
<p>&lt;CFOUTPUT>
<p>&nbsp;&nbsp;&nbsp; &lt;FORM NAME="form#Int(formid)#" ACTION=<a 
href="http://clickbank.net/sell.cgi?link=ucenet/1/Atlantis&seed=#altid">http://clickbank.net/sell.cgi?link=ucenet/1/Atlantis&amp;seed=#altid</a>#
METHOD="POST">
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;INPUT TYPE="Hidden"
NAME="formid" VALUE="#formid#">
<br>&nbsp;&nbsp;&nbsp; &lt;/FORM>
<p>&nbsp;&nbsp;&nbsp; &lt;A HREF="<a 
href="Javascript:document.form#Int(seed">Javascript:document.form#Int(</a>formid)#.submit()">Click
here&lt;/font>&lt;/A>
<br>&lt;/CFOUTPUT>
<br>&lt;font face="Verdana">
<br>to order online by credit card (Visa, Mastercard, Discover, American
Express, Eurocard, Visa Debit, and Novus cards).
<p>And on the receiving end:
<p>&nbsp;&lt;cfif #parameterexists(cookie.altid)#>
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;cfif #cookie.altid#
EQ #seed#>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Purchase validated, give them what they paid for...
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;cfelse>
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Problem with order...
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/cfif>
<br>&lt;cfelse>
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Problem with order...
<br>&lt;/cfif>
<p>Thanks everybody!
<p>sharon
<br>&nbsp;
<br>&nbsp;</html>

--------------0307E32963F2DF4A550BB08B--

------------------------------------------------------------------------------
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