posted 16 years ago
Answer is HttpSessionAttributeListener , I went for HttpSessionListener
Book has following explanation
-Option A is incorrect because the user name would not be
known when the session is initially created. Since logging is
desired at the time of the login, the listener’s invalidation
and timeout methods would not be helpful.
(API)
-Options B and D are incorrect
because these listeners are used for
servlet-context notifications.
I didn't understand why A is not a correct option , session will be created when the user first logged in .HttpSessionListener seems to be correct choice.
Archana