redirect to login page when session is expired
This commit is contained in:
parent
c7a8abe600
commit
0426946005
13
backend.php
13
backend.php
|
@ -23,6 +23,19 @@
|
||||||
|
|
||||||
if ($op == "rpc") {
|
if ($op == "rpc") {
|
||||||
print "<error error-code=\"6\"/>";
|
print "<error error-code=\"6\"/>";
|
||||||
|
} else {
|
||||||
|
print "
|
||||||
|
<html><body>
|
||||||
|
<p>Error: Not logged in.</p>
|
||||||
|
<script type=\"text/javascript\">
|
||||||
|
if (parent.window != 'undefined') {
|
||||||
|
parent.window.location = \"login.php\";
|
||||||
|
} else {
|
||||||
|
window.location = \"login.php\";
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</body></html>
|
||||||
|
";
|
||||||
}
|
}
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue