Ray, I was able to solve the problem with the session not clearing by changing the code at the bottom of the checkout_success.php page. I changed the code from the default:
<?php
@session_start();
if (!isset($_GET['framed'])){
// WA_ClearSession
$clearAll = FALSE;
$clearThese = explode(",","PayPal_ECO_Token,PayPal_ECO_PayerID,eCart1_Items,eCart1_OrderID");
if($clearAll){
foreach ($_SESSION as $key => $value){
unset($_SESSION[$key]);
}
}
else{
foreach($clearThese as $value){
unset($_SESSION[$value]);
}
}
}
?>
To the following code posted a few years ago on another thread in this forum:
<?php
@session_start();
if ("" == ""){
// WA_ClearSession
$clearAll = TRUE;
$clearThese = explode(",","");
if($clearAll){
foreach ($_SESSION as $key => $value){
unset($_SESSION[$key]);
}
}
else{
foreach($clearThese as $value){
unset($_SESSION[$value]);
}
}
}
?>
The above code is most effective in destroying every single session. Bottom line? The above code might be a sledge hammer but it does the trick. After 4 live payment tests, each new transaction resulted in a new record being saved to the orders and orderdetails database.
Thank you,
Robert Crespo


