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

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.

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

Languages :