I am trying to to understand why a simple logout.php script works on localhost but not on live server. Thanks in advance for any help.
here is the entire logout.php file
<?php//Start the session
session_start();
//Terminate the session
session_unset();
//Redirect users to login page
header('Location: http://www.somewebsite.com/login');
exit();
?>