Johnny wrote:
Quote:
<sheldonlgwrote in message
news:noudnalUUqw2OfTVnZ2dnUVZ_oDinZ2d@giganews.com ...
Quote:
Quote:
>>>>I have come across this problem before but never really resolved it.
>>>>It is probably something so obvious that I should be embarrassed to
>>>>even ask in this forum.
>>>>>
>>>>The problem is one of losing the value of a session variable. Here is
>>>>a sample of what I mean:
>>>>>
>>>>FileA.php:
>>>>Form to send to credit card processing firm. Prior to this, a
>>>>session variable for "security" had been defined as a blank space.
>>>>This file's action goes to a secure server where another page is
>>>>presented. The return goes to FileB.php.
>
Your original problem as stated above would sem to be related to the note
on php.net about passing session ids
http://us.php.net/manual/en/session.idpassing.php
>
"Note: Non-relative URLs are assumed to point to external sites and hence
don't append the SID, as it would be a security risk to leak the SID to a
different server."
>
Seems to me that the secure server definitely falls into he category of
"external sites".
>
Perhaps the approach to take would be to send an encrypted variable to the
secure server and have it pass that back and check that it is what you sent
a la what authorize.ent provides for just such a case. I've done just that
with their system and used what was returned, not the encrypted check part
but another after that was verified, to look up the record from the db.
>
Good luck.
>
Johnny
>
>
Yes, I have done similar stuff with authorize.net. authorize.net allows
you to define fields that are passed to the server and that don't appear
on the page. This credit card processor is itransact.com and they don't
have that capability -- at least not with what they call "split-screen".
Hence, I needed to maintain the session since I had to define those
variables as session variables prior to going to itransact.com, and then
use them on a successful processing of the credit card in to put certain
information into my database.