I have a log in script where I have been able to successfully make users, and log in. Now my issue is that whenever I try to use my method of protecting pages, being seeing if t
You need to put session_start(); on every page you want to use the session.
You have session_start();
after $_SESSION['user'] = $row;
Actually you have it after a die();
command. Nothing happens after that.
Put session_start();
at the top of PHP in every page (pref common.php since you have one) not just one page.
It would be better to set the session_start()
on top