Redirect to last URL after relogin when session timed out, fixes #443

Signed-off-by: Roman Schmerold (BNoiZe) <bnoize@froxlor.org>
This commit is contained in:
Roman Schmerold (BNoiZe)
2014-01-05 22:35:26 +01:00
parent fdc29ee8c2
commit 7fc3ac587a
4 changed files with 35 additions and 5 deletions

View File

@@ -367,7 +367,11 @@ if (file_exists($hl_path.'/logo_custom.png')) {
*/
if ($nosession == 1 && AREA != 'login') {
unset($userinfo);
redirectTo('index.php');
$params = array(
"script" => basename($_SERVER["SCRIPT_NAME"]),
"qrystr" => $_SERVER["QUERY_STRING"]
);
redirectTo('index.php', $params);
exit;
}