wood burning stoves 2.0*
The moose likes Tomcat and the fly likes Sesson Time out Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Sesson Time out" Watch "Sesson Time out" New topic
Author

Sesson Time out

Naresh Rajan
Ranch Hand

Joined: Sep 08, 2005
Posts: 45
I am using session timeout in my application. In the web.xml i have mentioned my session timeout time.

I have a class that implements the httpsessionbindlistener class where i call the method to logout the user from the authentication server.

In session timeout am i supposed to mention this class name somewhere? if yes where am i supposed to mention?

Please help in this regard


Am not a pro and thats why am here!!!
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41635
    
  55
All you need to do is put an object which implements HttpSessionBindingListener into the session. Then the appropriate method of the interface will be called automatically when the session is about to expire.


Ping & DNS - my free Android networking tools app
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Sesson Time out