What I am ultimately trying to do is connect the script PHPwebsite with a credit card gateway Authorizenet. To do so I need to retrieve the username from phpwebsite and also the session id but I can't even retrieve it from the code to get started. The username is stored in this following session variable, I believe: $SESSION["OBJ_user"]->user_id;
I've tried pulling the value with various coding such as:
echo $SESSION["OBJ_user"]->user_id;
echo $OBJ_user->user_id;
echo $user_id;
Re session id: I can pull the session_name(), which is PHPSESSID but I can't get any thing with session_id() or session_id(PHPSESSID) . Shouldn't I be able to get some type of numeric identifier to the session? Or is that all taken care of through the session name PHPSESSID?
Ultimately what I need to do is that when the user leaves the site, they are taken to the authernet via a https, which will then send the user back to a designated page on my site. (this has already been accomplished). Then I will need to retrieve the session information so that hopefullly I can pick the session back up where it was left. (This I haven't baccomplished yet).
Any help you could supply would be greatly appreciated.