On Oct 26, 4:02 pm, mohammed.nagh...@gmail.com wrote:
> I have a jsp page with the maxInactivity timeout set to 120 seconds.
> I also have a javascript that shows a warning to the user when one more
> minute is left for the session to expire.
> I want to give the user an option to renew his session.
> How can I do this?
You can write some JavaScript code to send the browser to a servlet or
action that renews the session (or something as simple as refreshing
the page), with a confirm dialog of some kind.
mohammed.naghman@gmail.com - 30 Oct 2006 20:01 GMT
> On Oct 26, 4:02 pm, mohammed.nagh...@gmail.com wrote:
> > I have a jsp page with the maxInactivity timeout set to 120 seconds.
[quoted text clipped - 6 lines]
> action that renews the session (or something as simple as refreshing
> the page), with a confirm dialog of some kind.
I tried refreshing the page and it works. But the problem is, the page
that I am trying to refresh is a form so for the scenario where the
user has filled half the form and then goes idle and the session times
out, then on refreshing the entered values will be cleared.
I just want to give the user to renew the session. Can I do it without
refreshing?