You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Below code userpage.php forces the userpage.php to render blank page (no content) on browser since exit() command is not part of if condition. Once I comment that out, or move inside the if condition it works.
if (!isset($loggedInUser))
header('Location: login.php');
// else
// header('Location: /');
exit();
Shouldn't the correct code be:
if (!isset($loggedInUser)) {
header('Location: login.php');
exit();
}
// else
// header('Location: /');
The text was updated successfully, but these errors were encountered:
Below code userpage.php forces the userpage.php to render blank page (no content) on browser since exit() command is not part of if condition. Once I comment that out, or move inside the if condition it works.
// else
// header('Location: /');
exit();
Shouldn't the correct code be:
// else
// header('Location: /');
The text was updated successfully, but these errors were encountered: