Automatically redirect to logout page if session seems to be expired
[infodrom/hallinta] / index.php
index 9502a81..6241918 100644 (file)
--- a/index.php
+++ b/index.php
@@ -17,7 +17,6 @@ $refresh = $gcml < 8*60*60 ? $gcml + 60*60 : $gcml;
 <head>
 <title><?=PAGETITLE?></title>
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-<meta http-equiv="refresh" content="<?=$refresh?>; URL=./?logout=true ">
 <?=load_js($jsfiles, $jscode);?>
 <link href="stylesheet.css" rel="stylesheet" type="text/css">
 <link href="style.css" rel="stylesheet" type="text/css">
@@ -26,6 +25,7 @@ $refresh = $gcml < 8*60*60 ? $gcml + 60*60 : $gcml;
 <?=load_style($style);?>
 </head>
 <body>
+<div id="logout_refresh" style="display: none;"><?=$refresh?></div>
 <div id="header">
 <h1><?=TITLE?></h1>
 <?=$menu; ?>