I know guys you will hate me because this title is often founded here.
But i searched after a solution and couldnt find one.
But please if you think this is a duplicate of the exact issue with description then please mark it as redirect with the URL of the duplicate.
Anyway lets come to my issue.
Many people say that its because of a loop to itself which is often founded in the file itself.
Here is my index.php
On this file there isnt any redirects to itself but an include to auth.php.
<?php
session_start();
include("auth.php");
?>
In auth.php I got here the header and I thought this would be the "loop". But when I remove the header on this file index.php wont be executed, that means I got a white page displayed on the browser.
<?php
session_start();
if(!isset($_SESSION["username"])){
header("Location: ../index.php");
exit(); }
?>
How can I fix this correctly?
Kind regards :(