At the end of the order complete/success page i get "headers cannot be sent"
Hi
everthing si workingg, but at the bottom fo the success/complete page i get the error that the headers cannot be sent.
THIS IS THE BOTTOM CODE ON THE SUCCESS PAGE
<?php
// Initialize the session.
session_start();
// Unset all of the session variables.
$_SESSION = array();
// If it's desired to kill the session, also delete the session cookie.
// Note: This will destroy the session, and not just the session data!
if (isset($_COOKIE[session_name()])) {
setcookie(session_name(), '', time()-42000, '/');
}
// Finally, destroy the session.
session_destroy();
?>
AND JUST IN CASE - THIS IS THE TOP INFO
<?php
//WA eCart Include
require_once("WA_eCart/boogie_PHP.php");
?><?php
$boogie->GetContent();
?>
<?php
if ($boogie->IsEmpty()) {
$boogie->redirStr = "cart_view.php";
$boogie->cartAction = "RedirectIfEmpty";
}
?>
<?php
// WA eCart Redirect
if ($boogie->redirStr != "") {
header("Location: ".$boogie->redirStr);
}
?>
Im hoping somene knows what is causing this.