Discussion:
Session Vars not staying active
dealTek
2013-08-03 19:03:22 UTC
Permalink
Hi all,


I am having trouble with session vars.

I'm trying to implement the credit card direct pay method outlined here...

http://developer.authorize.net/api/dpm/

- Basically, page 1 is my form that goes outside my site to the cc gateway company then comes back with a result... (PG2)

Problem: if I try to create session vars on page 1 - they don't work on page 2.

Am I correct in thinking that when this process leaves my site and goes to the gateway, then returns, it is similar to creating a new session and that is why the session vars don't remain active?

Thanks in advance.




--
Thanks,
Dave - DealTek
***@gmail.com
[db-3]
Daniel P. Brown
2013-08-03 19:53:15 UTC
Permalink
Post by dealTek
Hi all,
I am having trouble with session vars.
I'm trying to implement the credit card direct pay method outlined here...
http://developer.authorize.net/api/dpm/
- Basically, page 1 is my form that goes outside my site to the cc
gateway company then comes back with a result... (PG2)
Post by dealTek
Problem: if I try to create session vars on page 1 - they don't work on page 2.
Am I correct in thinking that when this process leaves my site and goes
to the gateway, then returns, it is similar to creating a new session and
that is why the session vars don't remain active?
Post by dealTek
Thanks in advance.
Are you calling session_start() on both pages or at least using a
session auto start? Also, is the API returning the data by redirecting the
client (browser) or doing a postback?

If the remote server is calling back behind the scenes, then you'll
need a workaround and additional processing, or the ability to pass the
session ID and assume the client-initiated session (not ideal). If it's
all processed by the browser, the redirection should have no bearing, as
the session will persist based upon the server-side data and the
client-side cookie; the server will have no knowledge of the client's
redirection to the payment gateway (nor any remote destination).

Loading...