Hey Jason
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:
test-computer.com/
This is the failed login page:
login-failed.php
On successful login you are taken to the page
secure.php
where the content will depend on which login you have used:
If you use the login
Staff
test
you will see the content relevant to staff
if you use the login
Governors
test
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:
Governors
Allow if <?php echo $_SESSION['UserID']; ?> = 2
Staff
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?
Thanks
Jamie