This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Need to reset HTTP Session Timer" Watch "Need to reset HTTP Session Timer" New topic
Author

Need to reset HTTP Session Timer

Jeff Stickel
Greenhorn

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.

Jeff


" 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
Sheriff

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
Greenhorn

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="http://www.J2EETraining.com" target="_blank" rel="nofollow">J2EE Training / Java EE Training ... Learn Java EE </a>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need to reset HTTP Session Timer
 
Similar Threads
session is not refreshing for ajax4jsf request
session timeouts
JWebUnit / WebTestCase question
testing to see if a session has expired
Builing First GUI - A few questions