This is my page between login und welcome page...
<?php require_once( "/WA_SecurityAssist/Helper_PHP.php" ); ?>
<?php $logouttime = mktime(date("H"),date("i")+15,date("s"),date("m"),date("d"),date("Y")); ?>
<?php
if (!session_id()) session_start();
if("" == "") {
$_SESSION["logouttime"] = "".$logouttime ."";
}
?>
<?php
if (!WA_Auth_RulePasses("member")){
WA_Auth_RestrictAccess("../noaccess.php");
}
?>
<?php
if(WA_Auth_RulePasses("member")){
$WA_Redirect_URL = "willkommen.php";
$WA_Redirect_KeepQS = false;
if ($WA_Redirect_URL != "") {
if ($WA_Redirect_KeepQS && $WA_Redirect_URL != "" && isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] !== "") {
$WA_Redirect_URL .= ((strpos($WA_Redirect_URL, '?') === false)?"?":"&").$_SERVER["QUERY_STRING"];
}
header("Location: ".$WA_Redirect_URL);
}
}
?>
this is my function that I call on evers page.
<?php // Verlängerung der Logout Time
function MoreLoginTime(){
if(mktime() <= $_SESSION['logouttime']) {
$_SESSION['logouttime'] = mktime(date("H"),date("i")+15,date("s"),date("m"),date("d"),date("Y"));
}
}
?>
<?php MoreLoginTime(); ?>
and the rule should be. mktime(); >= $_SESSION['logouttime']
this works vor me.
cheers