I just migrated the source code from one server to another and now I am recieving this error on the new server
Warning: Cannot add header information - headers already sent by (output started at c:\inetpub\wwwroot\dhl\current_development\login_response.php:2) in c:\inetpub\wwwroot\dhl\current_development\login_response.php on line 37
my code is as follows:
<?
if (empty($user_name_result) && empty($password_login_result))
{
HEADER("Location:login_Error.php");
}
elseif(!empty($user_name_result) && !empty($password_login_result))
{
$session_id = md5(uniqid(rand() ));
$insert = mssql_query("INSERT INTO session
(session_id, visitor_id, sessiondate)
VALUES
('$session_id', '$user_name', '$date')
");
Header("Location:index.php?session_id=$session_id");
}
?>
What is happining?