Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Keep servlet session alive, and terminate when needed?

843840Oct 1 2002 — edited Oct 2 2002
Dear all,

I am writing a web component that requires the following feature:

When user enters the login page, I want the servlet session to keep alive, i.e, I do not want the session to time-out, this is because I use the session to save some user information, which requires to retrieve them later(maybe in 1-2 hrs). Basically, I want to session to keep on renew before it is going to expire. But once the user close or leave the login web-page (or certain page), I want the user's session to stop immediately.

Anyone has some ideas or experience on it? Please drop me some lines or give me some code samples.

Many many thanks!

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 30 2002
Added on Oct 1 2002
9 comments
856 views