the cart contents are stored in a session named "<eCart Object Name>_Items", where <eCart Object Name> is the name of your eCart object.
The Order ID is stored in a session that is created by the Store order summary server behavior on the confirm page.
Double click the store order summary server behavior on the confirm page and note the name that the Order ID is being saved as.
now add the following code on the checkout success page after the closing </html> tag
<?php
if ("" == ""){
// WA_ClearSession
$clearAll = FALSE;
$clearThese = explode(",","OrderID,Cart_Items");
if($clearAll){
foreach ($_SESSION as $key => $value){
unset($_SESSION[$key]);
}
}
else{
foreach($clearThese as $value){
unset($_SESSION[$value]);
}
}
}
?>
change:
$clearThese = explode(",","OrderID,Cart_Items");
to the names of the OrderID session variable and the Cart items session variable.