Most likely, the success page is missing the require_once line to attach the cart include file, but I cant say for sure without seeing the code.
make sure code similar to the following is at the top of your page:
<?php
//WA eCart Include
require_once("WA_eCart/$<Cart Name>_PHP.php");
?>
<?php
$<Cart Name>->GetContent();
?>
Where <Cart Name> is the name of your eCart object.
To clear a session variable add :
<?php if($_SESSION['variable_name']) unset($_SESSION['variable_name']); ?>