Hallo,
after searching in this plenty of posts about http-header I'm really afraid to aks this...
I have a simple Auth. application to restricting users from some pages. The area is used by different countries while using different languages. Thats why i want to redirect to the loginpage after clicking the "logout" button. I do this with this code:
$_SESSION['entry'] = $_SERVER['PHP_SELF'];
$success = "/usenet/index.php";
header("Location: $success");
if the user hits the "logout" i use this code:
elseif (isset($_GET['exit']) && ($_GET['exit'] == "yes")) {
unset($_SESSION['password']);
header("Location: ".$_SERVER['DOCUMENT_ROOT'].$_SESSION['entry']);
exit;
After this, there is no error, only a blank screen. Without this "return to start" my scripts redirect very well.