Dear Jason,
I am not getting restricted using the example code you gave me and I am not sure why:
<?php
if ((WA_Auth_RulePasses("Feast")) && (WA_Auth_RulePasses("JourneyAll"))){
WA_Auth_RestrictAccess("http://curalarge/login.php");
}
?>
If I use the code example with my access rules names I get no login needed, the page load even if I do not login. If I change it to this
<?php
if ((!WA_Auth_RulePasses("Feast")) && (!WA_Auth_RulePasses("JourneyAll"))){
WA_Auth_RestrictAccess("http://curalarge/login.php");
}
?>
I get a redirect to login, but when I log and it takes me to the page it allows access because the first rule is true but the second is not.
The "Feast" rule allow access for ProgramPartID = 2 or 99
The "JourneyAll" rule allows access for ProgramID = 3 or 4
When I login my ProgramPartID session is 99 and my ProgramID = 2 which should not allow me access.
I have included my rules page. Many thanks again for your help.