Use attributes from HttpSession like getLastAccessedTime() and
getMaxInactiveInterval(). You can get access through WebRequest that holds
an HttpServletRequest object. When HttpSession ends, the wicket session ends
too.


On Mon, Jan 18, 2010 at 5:33 PM, Apple Grew <[email protected]> wrote:

> Hi,
>
> I am a Wicket fresher. I am still getting the hang of this.
>
> I want to develop a web application where I would like to show the user a
> message informing him that his session is about to expire in x minutes. If
> he wants to save his session then can click on a button which appears along
> with this message.
>
> Also, using javascript I would like to 'sense' that the user is typing-in
> or
> moving his mouse over the webpage, which is evident enough that he is using
> the session.
>
> I will somehow figure out the js code needed but *how will I tell Wicket to
> keep the session alive? Also how can I be notified x minutes before Wicket
> expires the session?*
>
> Regards,
> Apple Grew
> my blog @ http://blog.applegrew.com/
>



-- 
Pedro Henrique Oliveira dos Santos

Reply via email to