Hope you had a good long weekend and Labor Day...
Right, re the above, I have set it up on a live test server:
This is the login page:
This is the failed login page:
On successful login you are taken to the page
where the content will depend on which login you have used:
If you use the login
you will see the content relevant to staff
if you use the login
you will see the content relevant to governors
If you go to the secure.php page without logging in you see nothing.
The access rules are:
Allow if <?php echo $_SESSION['UserID']; ?> = 2
Allow if <?php echo $_SESSION['UserID']; ?> = 1
This all works fine but am wondering how to do a couple of things:
1. if someone lands on secure.php that isnt logged in or shouldnt be there, how would I redirect them straight away to the login page?
2.how would I link up the Super Admin and User logins to be able to access without having to login as staff or governor?