added message for expired sessions

This commit is contained in:
Roland Gruber 2006-05-01 08:56:40 +00:00
parent f1986c3cd1
commit 8176cdccac
2 changed files with 6 additions and 0 deletions

View File

@ -121,6 +121,7 @@ function logoffAndBackToLoginPage() {
break;
}
}
$page .= "?expired=yes";
echo $_SESSION['header'];
echo "<title></title>\n";
echo "</head>\n";

View File

@ -187,6 +187,11 @@ function display_LoginPage($config_object) {
echo "<br>";
}
}
// check if session expired
if (isset($_GET['expired'])) {
StatusMessage("ERROR", _("Your session expired, please log in again."));
echo "<br>";
}
?>
<table width="650" align="center" border="2" rules="none" bgcolor="white">
<tr>