Page 1 of 1

Cookies cleared upon posting to payment gateway

Posted: Tue Aug 10, 2004 12:05 pm
by voltrader
Cookies are set as:

setcookie("name", hash, 0, "/");

print_r of the cookies before posting to https://paymentgateway shows that they are all there

however, on return from https://paymentgateway, an immediate print_r of cookies show that they are all cleared!

I tried setting time to time()+3600, as I thought it may be a case of a pseudo-browser-close, but that didn't make any difference.

If I bypass paymentgateway, my cookies are all there, so I've narrowed down the problem to the posting and redirection to the payment gateway.

I've run out of things to try :(

Posted: Wed Aug 11, 2004 1:44 pm
by Weirdan
ok, let me clarify:
  • Are you sending the user to https page of payment gateway from http page?
  • Does gateway redirect the user to http page?
  • Are domains of initial and final pages the same?

Posted: Wed Aug 11, 2004 2:29 pm
by voltrader
Thanks. I discovered that the return url did not have a www. and I missed passing back a critical variable.

Posted: Wed Aug 11, 2004 4:37 pm
by Weirdan
heh, most programming problems are simple in nature ;)