Its just using my error I have setup which would be this.
Sorry but you must be logged in to view that page
It says this, because it uses this in the next page to load the page. It makes sure that the users is logged in.
At the top before anything it makes sure with a funciton that points to this code.
function staff_confirm_logged_in() {
if (!staffLogged_in()) {
redirect_to("staffLogin.php?error=1");
}
The error jumps back to my staffLogin.php page where it spits out the error for error=1 which is error
Sorry but you must be logged in to view that page
So its getting to the next page, but failing to use sessions and I tested this because if i edit out the sessions on the next page and to check if my user is logged in. I get to the next page. Without commenting anything about sessions it shows me the error that i am not logged in.