Hi there,
what i'm trying to do here is a credit card transaction with logging the user in after transaction has been approved.
Transaction works fine, but what I want to happen next is to set a session variable and redirect a user to clients home page.
but I believe curl sends headers and as a result, i can't set session variables or it gets another Session_Id() from server.
is there any way around it ? may be completely different steps of what i have
I have three pages to process transaction:
1) register.php - Registration form. Posts to register.php, validates all required info and inserts user details into a temporary table than using curl post to process.php
2) process.php takes required info from temp table, adds more merchant account details and posts a transaction request on a secure server.
3) processfinal.php - if transaction was successful - secure server posts back on this page - here I add user to a users table and need to set a session variable $HTTP_SESSION_VARS["userid"] = last inserted id.