File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Need to reset HTTP Session Timer Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Need to reset HTTP Session Timer" Watch "Need to reset HTTP Session Timer" New topic

Need to reset HTTP Session Timer

Jeff Stickel

Joined: Jan 18, 2005
Posts: 3
Does anyone know of a way to reset the HTTP Session Timeout Timer from within the application? I'm open to using any means on the following APIs:
- Java Servlet 2.3
- Spring 1.2.2
- WebWork 2.1.7

This is an older application I'm supporting for a client and they've requested that the application reset the HTTP Session timer upon a couple specific user Actions.

Any thoughts? Thanks for any and all help.


" I believe that the man who works the hardest is the man who deserves to win."<br /> <br />-- Lance Armstrong, upon winning his 6th Tour de France
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

The timer gets set each time the user hits the page.
If that's not what you meant, can you give us some more details about what you're trying to do?

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
kelby zorgdrager

Joined: Feb 05, 2008
Posts: 12
you can invalidate the session and then get a new session.. that will "reset" it.. but will also kill the active one all together..

<a href="" target="_blank" rel="nofollow">J2EE Training / Java EE Training ... Learn Java EE </a>
I agree. Here's the link:
subject: Need to reset HTTP Session Timer
jQuery in Action, 3rd edition