Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / October 2006

Tip: Looking for answers? Try searching our database.

Can I restart a jsp session from a javascript?

Thread view: 
mohammed.naghman@gmail.com - 26 Oct 2006 21:02 GMT
Hi,

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?
Joe Attardi - 26 Oct 2006 21:44 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.
> 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?


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.