Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
May 23, 2012, 10:39:42 PM

Pages: [1]   Go Down
  Print  
Author Topic: Question regarding HttpSessionBindingListener  (Read 493 times)
folkxing
Spacescooter Operator
*****
Offline Offline

Posts: 36


« on: August 30, 2002, 12:18:00 AM »

I created an object implementing the HttpSessionBindingListener.  Do the codes within the "valueUnbound" section get execute before or after the session expires.
I want to save the session's data just right before the session ends.  Is this possible?
Logged
RichieRich
Space Explorer
***
Offline Offline

Posts: 6


WWW
« Reply #1 on: September 16, 2002, 02:33:00 AM »

Look into HttpSessionListener. This requires your web.xml file to have the following Tag in it.

<listener>
    <listener-class>com.lunarForms.Listener</listener-class>
</listener>

Also, HttpSessionBindingListener gets kicked off has a result of the servlet programmer explicitly unbinding an attribute or due to the session being invalidated, or the session times out.

So your answer is yes.
Logged

Richard Burton
Software Developer
Pages: [1]   Go Up
  Print  
 
Jump to: