Rule does not work
Hi,
what does not work here?
<?php
function WA_Auth_GetComparisonsForRule($ruleName){
$comparisons = array();
switch ($ruleName){
case "hgAdmin":
$comparisons[0] = array(FALSE, "".((isset($_SESSION['memberID']))?$_SESSION['memberID']:"") ."", 4, "0");
$comparisons[1] = array(TRUE, "".((isset($_SESSION['level']))?$_SESSION['level']:"") ."", 1, "9");
$comparisons[2] = array(FALSE, "".mktime() ."", 5, "".((isset($_SESSION['logoutTime']))?$_SESSION['logoutTime']:"") ."");
break;
}
return $comparisons;
}
function WA_Auth_GetGroup($groupName){
$group = Array();
switch($groupName){
}
return $group;
}
?>
This ist the logoutTime:
<?php
if (!session_id()) session_start();
if (isset($_POST["buttonLogin"])) {
$_SESSION["logoutTime"] = "".mktime(date("H"),date("i")+5,date("s"),date("m"), date("d"),date("Y")) ."";
}
?>
The page does not redirect when mktime is over logoutTime :-(((