Here is a very rough example, keep in mind there a several factors that can reset the timeout to happen in the server and then you need to reset your timer in the client, the most troublesome to handle are ajax interaction and iframe.
So assuming you don't have any ajax component or iframe on the page that can actually trigger any server interaction and the user just sit in the page and wait, something like this is the easiest way: setTimeout("showAboutToTimeout()", (1000 * (60 * 28) ); //28min function showAboutToTimeout(){ // Here you can build you message or show floating div, what ever you like alert("Your session may timeout in 2 minutes unless you interact with the page :) "); } On Wed, Sep 1, 2010 at 11:52 AM, fachhoch [via Apache Wicket] < ml-node+2403332-1651621642-65...@n4.nabble.com<ml-node%2b2403332-1651621642-65...@n4.nabble.com> > wrote: > I can do that, do you have any examples for java script notification when > session is about to timeoout ? > > ------------------------------ > View message @ > http://apache-wicket.1842946.n4.nabble.com/session-timeout-notification-using-cometd-tp2403249p2403332.html > To unsubscribe from Apache Wicket, click > here<http://apache-wicket.1842946.n4.nabble.com/template/TplServlet.jtp?tpl=unsubscribe_by_code&node=1842946&code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=>. > > > -- Sincerely, JC (http://www.linkedin.com/in/jcgarciam) Work smarter, not harder!. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/session-timeout-notification-using-cometd-tp2403249p2403388.html Sent from the Wicket - User mailing list archive at Nabble.com.