This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Sesson Time out

 
Naresh Rajan
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic