This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JSP and the fly likes Redirect before Session Timeout Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Redirect before Session Timeout" Watch "Redirect before Session Timeout" New topic
Author

Redirect before Session Timeout

Sri Gnana
Ranch Hand

Joined: Apr 29, 2004
Posts: 166
Dear Friends,
I want to use the session ID before the session timeout happens. So, how to find the session timeout and get the id for my storing purpose in jsp.


Thanks & Regards
Sri Gnana
Everythings Programmed!...
Andreanes Yosef Vanderlee
Greenhorn

Joined: Mar 30, 2007
Posts: 12
when the session is destroyed or timeout, you wanna do something on you server.. is it what you wanna do?? is yes then, take a look at this
HttpSessionAttributeListener
HttpSessionListener
this 2 interfaces can be used to do something on the server when session is already inactive *even the client close the browser, disconnecting from server, etc..*
 
Consider Paul's rocket mass heater.
 
subject: Redirect before Session Timeout