So i've finally uploaded my work from wamp to my actual website.
Everything seems to runs completely fine except header();
Example:
I have so if you're not logged in and try to access the logout url, it would redirect you to the login page.
if(!isset($_SESSION['loggedin'])){
header("Location: index.php?page=login");
exit();
on my localhost on wamp, it works perfect. Although on my website, it doesn't redirect.
I saw a post about this that recommended to use javascript redirect instead but i feel like it's unnecessary since there must be a way to sort this issue with using php.
RESOLVED: The host had the wrong version running and took 3 days to respond.