Warning: Cannot modify header information - headers already sent
I'm using my new Data Bridge v.1.1.3 to create a contact form. The form wizard was very simple to use. The end result was that I have a functional form that sends a message as expected, but I'm getting an error on the redirect. The successful message sent is supposed to route to a thanks.php page but instead of doing that it provides an error
Warning: Cannot modify header information - headers already sent ... /webassist/form_validations/wavt_scripts_php.php on line 84
I was getting session (3) errors earlier; Warning: session_start() [function.session-start]: Cannot send session cache limiter
But I added the following to the bottom of the page which has resulted in the error related to the wavt_scripts_php.php page.
<?php
// Initialize the session.
// If you are using session_name("something"), don't forget it now!
@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 (ini_get("session.use_cookies")) {
$params = session_get_cookie_params();
@setcookie(session_name(), '', time() - 42000,
$params["path"], $params["domain"],
$params["secure"], $params["httponly"]
);
}
// Finally, destroy the session.
@session_destroy();
@session_regenerate_id();
?>