Post a Job  |   Ask a Question?   |   Already registered? login or register
rabindra jain
28/05/2015 02:14 PM

What is the purpose of SessionTimeoutNotifier.valueUnbound()


Please explain the above one in details..I faced in one of the Interview
Spam    2 Comments

Bikash,Prusty
29/05/2015 11:58:40
If you have some logic and you want to execute whenever the HttpSession removed. Like : Define a class, say SessionTimeoutNotifier, that implements javax.servlet.http.HttpSessionBindingListener. Create a SessionTimeoutNotifier object and add it to the user Session. When the Session is removed, SessionTimeoutNotifier.valueUnbound() will be called by the Servlet Engine.

Yagnesh,Thirumalagiri
30/05/2015 02:24:31
What is the benefit out that?Where exactly we use that scenario?

Languages :
xml