Hi,
as Martin said this kind of "strong" interaction is not part of standard
API. But you could do a very simple thing to warn your users: start a
Javascript time-event with session timeout as time-interval:
http://www.w3schools.com/js/js_timing.asp.
I.e:
var t=setTimeout("/alert('Back to your job lazy user!!') /", <session
timeout in millisecond minus something....>);
The servlet API doesn't provide such notifications.
The only way to do this that I see is to track the times for each user
in your code.
But even then you'll have to send the notification to the browser and
here comes the question - how?
On Thu, Jun 9, 2011 at 8:24 AM, Arjun Dhar<[email protected]> wrote:
Hi,
I want to be able to show a Warning message appear when the session is
about to expire (say 5 minutes before) and if the session has expired then
on the UI it should come. This is to ensure a User does not enter any data
and lose it when they click Submit.
Use Case I wanna prevent: Lazy User goes for Coffee, comes back completes
Form, presses Submit ...curses me!
thanks
-----
Software documentation is like sex: when it is good, it is very, very good; and
when it is bad, it is still better than nothing!
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Graceful-Session-Expiry-tp3584660p3584660.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]