Commit 4d3bd37e authored by Daniel Henninger's avatar Daniel Henninger Committed by dhenninger

[GATE-134] Fixed via cheese. (session ping to keep session active)

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk/src/plugins/gateway@6425 b35dd754-fafc-0310-a699-88a17e54d16e
parent 79441993
......@@ -39,4 +39,11 @@ public class ConnectionTester {
}
}
/**
* Cheesy DWR 'ping' to make sure session stays alive.
* Literally does nothing.
*/
public void pingSession() {
}
}
......@@ -256,6 +256,7 @@
</style>
<script src="dwr/engine.js" type="text/javascript"></script>
<script src="dwr/util.js" type="text/javascript"></script>
<script src="dwr/interface/ConnectionTester.js" type="text/javascript"></script>
<script language="JavaScript" type="text/javascript" src="scripts/gateways.js"></script>
<script type="text/javascript" >
DWREngine.setErrorHandler(handleError);
......@@ -264,6 +265,13 @@
function handleError(error) {
// swallow errors
}
function pingSession() {
ConnectionTester.pingSession();
setTimeout("pingSession()", 60000); // Every minute
}
setTimeout("pingSession()", 60000); // One minute after first load
</script>
</head>
......
......@@ -534,6 +534,13 @@
Effect.toggle(targElement,'slide', {duration: .4});
}
}
function pingSession() {
ConnectionTester.pingSession();
setTimeout("pingSession()", 60000); // Every minute
}
setTimeout("pingSession()", 60000); // One minute after first load
</script>
</head>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment