spread sheet session timeout
You can setup javascript on your page which sends dummy requests to the server say every 5 minutes. This would keep your session alive while browser window is open.
Something like this:
Make sure there is pixel.gif in your app's directory.
Something like this:
Code: Select all
function pingServer() {
new Image().src='pixel.gif?rnd='+Math.random();
}
setInterval(pingServer, 300000);
Or you can use <p:poll> component to send ajax requests at given interval.
That's it. Although much more resource intensive than pixel.gif retrieval.
Code: Select all
<p:poll interval="300" process="@none"/>
-
- Information
-
Who is online
Users browsing this forum: Google [Bot] and 22 guests