MySQLi Log Out User not logging out user?
I have the following on a sign out page:
<?php require_once('webassist/mysqli/authentication.php'); ?>
<?php
if ("" == "") {
$LogOut = new WA_MySQLi_Auth();
$LogOut->Action = "logout";
$LogOut->Name = "prescIN";
$LogOut->execute();
}
?>
I have another page with the MySQLi Restrict Access to Page behaviour...
<?php require_once('webassist/mysqli/authentication.php'); ?>
<?php
if ("" == "") {
$RestrictAccess = new WA_MySQLi_Auth();
$RestrictAccess->Action = "restrict";
$RestrictAccess->Name = "prescIN";
$RestricAccessRedirect = "staff.php?f=2";
if (function_exists("rel2abs")) $RestricAccessRedirect = $RestricAccessRedirect?rel2abs($RestricAccessRedirect,dirname(__FILE__)):"";
$RestrictAccess->FailRedirect = $RestricAccessRedirect;
$RestrictAccess->execute();
}
?>
However, when we click our sign out button, and are taken to the sign out page, and then attempt to access the page that's restricted, it simply allows us access to that page.
Anything obvious in the above?
Thank you.
NJ