(This does not answer my question).
I am trying to redirect to the landing page after a user attempts to login, here is what I've done:
<?php
ob_start();
session_start();
if ($loginSuccess)
{
echo "Logged in: True";
header("Location: index.php?status=1", true, 200);
}
else
{
echo "Logged in: False";
header("Location: index.php?status=0", true, 401);
}
ob_end_flush();
exit();
?>
However when I try this I get the page never gets redirected back to the page that the request was made with (index.php)