Keep servlet session alive, and terminate when needed?
843840Oct 1 2002 — edited Oct 2 2002Dear 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!