Use the following code to check for Item ID 1 in the cart and change the value of the session:
<?php
if($<Your Cart Name>->InCart("1") == true) {
$_SESSION['returnurl'] = "complete2.php";
}
?>
change <Your Cart Name> to the name of your eCart object.