Fix redirect after login
This commit is contained in:
parent
f2619aeb2c
commit
a0c8944d09
@ -14,9 +14,10 @@ if( (isset($_POST['loginName'])) && isset($_POST['loginPassword'])){
|
|||||||
$object = $result->fetch_object();
|
$object = $result->fetch_object();
|
||||||
$_SESSION['user'] = $object->id;
|
$_SESSION['user'] = $object->id;
|
||||||
$_SESSION['username'] = $object->username;
|
$_SESSION['username'] = $object->username;
|
||||||
echo "Einloggen erfolgreich <br> Willkommen " . $_SESSION['username'];
|
// echo "Einloggen erfolgreich <br> Willkommen " . $_SESSION['username'];
|
||||||
//header("refresh:1;");
|
// header("refresh:1;");
|
||||||
header('Location: index.php?page=myFriendsBook');
|
// header("location:index.php?page=myFriendsBook");
|
||||||
|
echo "<script>location.href='index.php?page=myFriendsBook';</script>";
|
||||||
} else {
|
} else {
|
||||||
echo "Einloggen fehlgeschlagen";
|
echo "Einloggen fehlgeschlagen";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user